This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
assembler errors
- From: Burt Gordon <gordon at hcs dot ufl dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 14 Jul 2004 16:34:26 -0400
- Subject: assembler errors
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
--------------------------------------------*/