Can someone please tell me how to install the cross compiler (programming language C) for the SA1100 microprocessor? I have ubuntu 12.04 LTS. I´m a complete noob to Linux, I just installed Ubuntu yesterday. I need a special variant of the GCC compiler that is named “arm-unknown-linux-gnu-gcc” but don know how to do it. Can someone please help me? Answer
Tag: compiler-construction
g++ 4.6.1 compiler error: Error: unknown pseudo-op: `.cfi_personality’
I have a file which compiles without errors or warnings on my macbook pro running osx (snow leopard) using g++ (4.6.1). I just uploaded it to our linux cluster (not run by me) and tried to compile there (also using gcc 4.6.1). This time I many strange error messages with the assembler. How do I interpret the following error? Answer
Can I squeeze my own program between the preprocessor and compiler?
Is this a stupid question, or can I specify g++ to use a program between the preprocessor and compiler? Alternatively, I know that I can just run the preprocessor on a file (hence all the files). Then I am guessing there is a switch to run only the compiler. So I can manually invoke these two and put my program
How does a C compiler find that -lm is pointing to the file libm.a?
What’s .a files in C programming in linux ? Is it library file ? Here how compiler find that -lm is pointing to the file libm.a , and -lsocket as libsocket.a ? And if we add the header file to the program, Is it must we want to mention library while compiling ? Answer As Ignacio says, .a files are
Trying to understand gcc’s complicated stack-alignment at the top of main that copies the return address
hi I have disassembled some programs (linux) I wrote to understand better how it works, and I noticed that the main function always begins with: so my question is: why all this work is done ?? I only understand the use of: the rest seems useless to me… Answer I’ve had a go at it: