Assembly programming on Linux?
Two questions:
1) Does anyone know a forum(s) about assembly programming on Linux? Could be restricted to x86, or non-restricted to Linux. 2) Why is it that my little assembly program, that uses command line parameters, runs fine if compiled with GCC, but crashes with segmentation fault if compiled wit as and linked with ld? |
No forum that I know of or can find.
The output of that should be machine instructions, so what I'd do is to compare the output from GCC with the output from AS. |
|
Figured the 2) out:
GCC adds a prologue (cinit, I guess) that reorganizes the commandline parameters and calls the "main". AS doesn't. Code:
# GCC |
All times are GMT -5. The time now is 01:01 PM. |