[LLVMdev] Does DragonEgg support parameters like -fno-builtin in clang?

Jeff Jia fjia at cs.ucsd.edu
Wed Apr 10 12:54:24 PDT 2013


Hi chenwj,

Thanks! I have tried it, but the generated byte code still uses
`llvm.memset`. I guess the flag `-fno-builtin` is not used by DragonEgg, or
I missed some other
configuration parameters.


On Tue, Apr 9, 2013 at 7:45 PM, 陳韋任 (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw
> wrote:

> On Tue, Apr 09, 2013 at 04:39:14PM -0700, Jeff Jia wrote:
> > Hi,
> >
> > I have been using clang for quite a while, and I can use `clang
> -fno-builtin
> > hello.c` to prevent the generation of llvm built-in functions, such as
> > llvm.memset. Recently, I switched to gcc with DragonEgg, since the
> program to
> > be built is originally designed to be compiled with gcc. I searched on
> the web,
> > but did not find any information about how to set DragonEgg parameters.
> Could
> > anyone please give me some help? Thanks in advance!
>
>   Dragonegg is a GCC plugin, I think you can just pass "-fno-builtin"
> [1] to gcc. Doesn't it work?
>
> [1]
>
> http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Option-Summary.html#Option-Summary
>
> Regards,
> chenwj
>
> --
> Wei-Ren Chen (陳韋任)
> Computer Systems Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
> Homepage: http://people.cs.nctu.edu.tw/~chenwj
>



-- 
Jeff Jia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130410/6c9ae019/attachment.html>


More information about the llvm-dev mailing list