Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Problems with sting constants and gcc -On

2005-10-17 by Guillermo Prandi

Hi! Has anybody found this? I'm using gcc 4.01 (latest WinARM) and I'm 
compiling for LPC2138 (ARM7). If I use this kind of stuff, constants 
don't get to the HEX file:

char *c = "Hello";

or

my_func("Hello");

However, if I use a built-in function like printf or puts, they do!:

printf("Hello");

This only happens with -On, where n != 0.

Guille

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.