This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to use -nostdlib?


On 05/15/2015 03:07 PM, Ãngel GonzÃlez wrote:
I thought -nostlib disabled the printf(x"\n") to puts(x) optimization...

The -ffreestanding or -fno-builtin (or -fno-builtin-printf)
options will do that.

-nostdlib is a link time option (see the manual for details).

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]