if you are building in QEmu, it will likely not help much - there the bottleneck is the emulated CPU and amount of RAM
yes, it's slower, no help from the j-flag when you are under QEmu (and see how much memory it eats
)
I am manually trying different options (I have asked the right combination to GNU email list)
the GNU documentation is not so clear to me too, their sources appears too bloated, which is confusing
I am really afraid I have to hack the Gcc's Makefile to force things
or probably I'd better hack the binary "gcc" in order to force the "collector" to point to the wanted-path
"
cc1" is the C compiler, "gcc" invokes it, so I could, eventually trash "gcc" and build my-own version of the "collector"
I already have my builder (already tested), so a project work-flow will look this way
- { list of file.s } ----> GNU.as ( my FLAGs ) ----> { list of file.o }
- { list of file.c } ----> GNU.cpp (1) --> GNU.cc1 ( my FLAGs ) ----> {{ list of file.o } + { list of file.S }} ( I want to see the assembly level )
- { { list of file.o } + myBSP + myLIBC.o + myCRT0.o } ---> GNU.ld ( my flags + linker script + memory model ) ---> binary (elf+debug symbols)
- binary.elf ---> GNU.objdump (strip) ---> motorola/s19
no doubt that it's a bit crude, but it looks like a practical solution to have everything under control ( including paths )
and it avoids me to waste too much time understanding whatever is GNU-skilled-only
(1) GCC has a number of phases to its compilation, and it uses different internal commands to do each phase.
C in particular is first preprocessed with cpp, then is compiled into assembly, assembled into machine language, and then linked together.
cc1 is the internal command which takes preprocessed C-language files and converts them to assembly.
It's the actual part that compiles C
Interesting
read about Gcc's Architecture