Thread (1 message) 1 message, 1 author, 2004-06-11

Re: Compiling assembler file with ppc_405-gcc

From: Wolfgang Denk <hidden>
Date: 2004-06-11 16:25:51

In message [ref] you wrote:
To compile this, I use the following lines in a makefile:
...
ppcsiafn.o:
      $(AS) $(CFLAGS_AS) -c $(SRC_PATH)/startup/init/ppcsiafn.s -o ppcsiafn.o
...
After a lot of tests, here are my conclusions: the different "#include" are not considered by the compiler. Indeed, I tried to introduce compilation errors in the different ".h" files --> no difference in the result
You don't call a compiler. You just run the assembler.  The  assember
does  nothing else but assemble your code. It does NOT include things
like running a preprocessore or so.
So I guess that but I don't know why : the character "#" is understood as a comment (equivalent to /* ...*/).
Maybe you want to check assembler syntax?
To conclude : is there a specific compil option to give to gcc for it to understand the #include command?
"gcc" does know how to run a preprocessor. But you're not running  "gcc",
you're running "as" only.
I checked the different linux assembler file and the #include is used. So why am I not able to use it?
Because your build rule is inappropriate for what you want to do?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Generally speaking, there are other ways to accomplish whatever it is
that you think you need ...                               - Doug Gwyn

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help