Hello,

> I am sorry for the subject line, but I am so confused right now I couldn't 
> think of with a better one.
Not anymore. Do you know how when you want to ask a perfect question, you find 
the answer yourself?

Below is an excerpt from the make log. First line is obviously an invocation of 
the compiler to compile just the init.c file from the hello world sample. The 
last line links the executable. Where does the rest of RTEMS come in? Is it in 
the "-qrtems" option? I coudln't find anything about "-q" option in the gcc man 
page. So do you actually patch GCC sources before building your own special 
RTEMS compiler toolkit?


i386-rtems4.11-gcc -B../../../../../pc386/lib/ -specs bsp_specs -qrtems 
-DHAVE_CONFIG_H -I. 
-I../../../../../../../rtems/c/src/../../testsuites/samples/hello -I..     
-mtune=i386 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration 
-Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c 
-o init.o ../../../../../../../rtems/c/src/../../testsuites/samples/hello/init.c

mv -f .deps/init.Tpo .deps/init.Po

i386-rtems4.11-gcc -B../../../../../pc386/lib/ -specs bsp_specs -qrtems 
-mtune=i386 -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration 
-Wstrict-prototypes -Wnested-externs   -Wl,-Ttext,0x00100000  -mtune=i386   -o 
hello.exe init.o 

Just to make sure then: RTEMS and the target application are compiled into one 
executable that just runs indefinitely. Correct?

While I'm at it, I have trouble using Qemu. This might deserve a thread on its 
own, but have you recently tested it? Running executables in sparc simulator 
using GDB works fine, running qemu-system-* also seems ok, but running 
qemu-i386 on x86 binaries or qemu-sparc with sparc executables gives me just 
"/path/to/exe: Invalid argument" error, nothing else.

And lastly, I get 404 when accessing Joel's pronounciation of "RTEMS". 4th 
question the FAQ: https://devel.rtems.org/wiki/TBR/Website/FAQ.


Merry Christmas.

Dominik
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to