assembler errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have gcc V3.3.1 on a AMD Opteron system using SuSE 9.0. After installing the system I tried to compile a simple helloworld.c and got the following assembly errors:

[gordon@lambda-16: ~] gcc hello.c -o H
/tmp/ccjW6PJh.s: Assembler messages:
/tmp/ccjW6PJh.s:9: Error: suffix or operands invalid for `push'
/tmp/ccjW6PJh.s:15: Error: `(%esp)' is not a valid 64 bit base/index expression

I tried to reinstall the base gcc rpm, but that did not help. Do you know of a way to fix this?

Burt


the code was just:

[gordon@lambda-16: ~] cat hello.c
#include <stdio.h>

int main()
{
        printf("Hello World!\n");
        return 0;
}




/*--------------------------------------------
Burt Gordon
Research Assistant,
High-Performance Computing and Simulation Lab,
University of Florida
www.hcs.ufl.edu/~gordon
--------------------------------------------*/



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux