I am using a GNU cross-compilation tool chain.
The problem I have is that, this tool chain, contain two AS command, one is AS other is AS.xxx. I am kind new to AS. In the past, when I compile a assembly code file code.S, I just call GCC, GCC call the AS internally. But this time, GCC interannlly, I think, is calling AS, but for CPU type I use, it has to be AS.xxx. So I had to explictly call AS.XXX, interad of GCC. The problem I noticed that AS.XXX can not deal well with preprocessor macros, like #ifdef etc. While GCC can properly processes macros, but it can not compile my code.
Any suggestions? Thanks,