This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
hi I found that if hello.c be as below: static int p; main() { char hi[] = "hi\r\n"; write(1, hi, sizeof(hi)); return 0; } (-I and -i) options work fine , but if hello.c be as : main() { printf("hi \n"); return 0; } (-I and -i) options dont work. seems intresting. what can be the reason ? On Sun, May 21, 2006 10:57 am, n_zainolabedini@ce.sharif.edu wrote: > Hello > > > I've recently installed powerpc cross compiler . it works fine . I > compiled and built a simple program with this instructions : > > $powerpc-unknown-eabi-gcc hello.c -o hello.o -msim > $powerpc-unknown-eabi-objdump -h hello.o > > > then i used following instructions : > > $psim hello.o > $hello world > > > $powerpc-unknown-eabi-run hello.o > $hello world > > > you see it works. Now my problem is that -I and -i options dont work for > the programs i built : > > $psim -i hello.o > $hello world > > > as you see , it doesnt print statistics . these options(-I and -i) work > for the binary files in psim-test-1998-11-20.tar . > > Is something wrong in the way I compile and build programs ? > > > any idea would be realy approciated. > > regards nasim abedini > > > > > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq > > > -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |