Oops, sorry, I didn't realize that this function lives outside the dsp
module. Sorry for the noise.

On Tue, Jun 14, 2016 at 5:13 PM, Albert Graef <aggr...@gmail.com> wrote:

> LLVM has an attribute Function::InternalLinkage for functions which can be
> set when a function object is created. There's probably a method on
> Function to set that later as well. Such functions won't be visible outside
> the LLVM module they're created in. So if you have all the LLVM functions
> for a dsp in a single module, that might be the way to go?
>
> On Tue, Jun 14, 2016 at 4:26 PM, Stéphane Letz <l...@grame.fr> wrote:
>
>> You forget something : faust2 deals with an intermediated FIR
>> representation that is later translated to C, C++, LLVM, asm.js…etc.. This
>> kind of code generation decision has to be done at FIR level and has later
>> to "make sense" for each backend with its own logic. So adding this «
>> static » if not the right way to do that, and this patch cannot be applied
>> in this form.
>>
>> Sorry for that ((-;
>>
>> Stéphane
>>
>>
>>
>> > Le 14 juin 2016 à 16:19, Kjetil Matheussen <k.s.matheus...@gmail.com>
>> a écrit :
>> >
>> > It works for my use. Unless this patch brakes anything, it would
>> > be practical if it was applied so that I don't have to do it manually
>> > every time I upgrade faust2. I guess it's better than nothing?
>> >
>> >
>> > On Tue, Jun 14, 2016 at 4:13 PM, Stéphane Letz <l...@grame.fr> wrote:
>> > This «  multilple definitions of linker errors »   is a problem we are
>> aware of, but that is a bit more complex to solve in a clean way that this
>> simple patch….
>> >
>> > Stéphane
>> >
>> >
>> > > Le 14 juin 2016 à 16:08, Kjetil Matheussen <k.s.matheus...@gmail.com>
>> a écrit :
>> > >
>> > > The autogenerated "faustpowerN_f" functions in faust2 must
>> > > be declared static to avoid "multilple definitions of"
>> > > linker errors when linking several faust files.
>> > >
>> > > This solution seem to work:
>> > >
>> > > --- compiler/generator/code_container.cpp~    2016-06-08
>> 13:36:37.000000000 +0200
>> > > +++ compiler/generator/code_container.cpp    2016-06-14
>> 16:00:43.959935889 +0200
>> > > @@ -286,7 +286,7 @@
>> > >              }
>> > >          }
>> > >
>> > > -
>> pushGlobalDeclare(InstBuilder::genDeclareFunInst(faust_power_name,
>> InstBuilder::genFunTyped(named_args, result_type), block));
>> > > +        pushGlobalDeclare(InstBuilder::genDeclareFunInst("static " +
>> faust_power_name, InstBuilder::genFunTyped(named_args, result_type),
>> block));
>> > >
>> > >          list<ValueInst*> truncated_args;
>> > >          truncated_args.push_back((*args.begin()));
>> > >
>> > >
>> > > ...but I don't know if it's the best one.
>> > >
>> > > http://users.notam02.no/~kjetism/code_container.cpp.diff
>> > >
>> > >
>> ------------------------------------------------------------------------------
>> > > What NetFlow Analyzer can do for you? Monitors network bandwidth and
>> traffic
>> > > patterns at an interface-level. Reveals which users, apps, and
>> protocols are
>> > > consuming the most bandwidth. Provides multi-vendor support for
>> NetFlow,
>> > > J-Flow, sFlow and other flows. Make informed decisions using capacity
>> > > planning reports.
>> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e_______________________________________________
>> > > Faudiostream-devel mailing list
>> > > Faudiostream-devel@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
>> >
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and
>> traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols
>> are
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>> J-Flow, sFlow and other flows. Make informed decisions using capacity
>> planning reports.
>> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
>> _______________________________________________
>> Faudiostream-devel mailing list
>> Faudiostream-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/faudiostream-devel
>>
>
>
>
> --
> Dr. Albert Gr"af
> Computer Music Research Group, JGU Mainz, Germany
> Email:  aggr...@gmail.com
> WWW:    https://plus.google.com/+AlbertGraef
>



-- 
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  aggr...@gmail.com
WWW:    https://plus.google.com/+AlbertGraef
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to