On Tue, Dec 23, 2014 at 1:53 PM, Dominik Táborský <bre...@seznam.cz> wrote:
> 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?
>
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.
>
I think you need to use a bootloader for i386 e.g. grub on a disk that
qemu reads from. Perhaps there is a way around it. There have been
some advancements to run Leon3 on qemu which you might find if you dig
through the mailing list.

> And lastly, I get 404 when accessing Joel's pronounciation of "RTEMS". 4th 
> question the FAQ: https://devel.rtems.org/wiki/TBR/Website/FAQ.
>
Many links broke when the wiki migrated to Trac. Thanks for pointing
this one out!

Gedare

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

Reply via email to