Mail Archives: pgcc/1999/05/14/21:05:57
let's just keep cc: to pgcc ml, so that if i made mistake
someone hopefully can point out. :)
or why don't you subscribe it.
From: Joseph Yau <yauj AT comm DOT toronto DOT edu>
Subject: Re: Using PGCC to compile C program together with modules in assembly language
Date: Fri, 14 May 1999 09:24:08 -0400 (EDT)
> I've written a function
> that i've found in a textbook example, and tried to compile it with GCC,
> but it gives me all kinds of error message. That's why i'm wondering if
> there are different syntax for different assembler, cuz that example i
> found is written for TASM/MASM syntax.
GAS uses AT&T syntax. it differ from Intel syntax which TASM/MASM uses.
reading Assembly HOWTO might help you a bit.
> By the way, do u know how u can choose the kind of assembler you
> want to use when u install EGCS, and do u know anything about the assembly
> language syntax used by different assembler, that is there any difference
> between using TASM/a86/MASM/NASM, etc ....
there is a program which can convert AT&T syntax <-> Intel's.
try freshmeat.net.
i haven't tried linking objct file from any asembler other than
gas with gcc, but there should be a way to do it.
> Also, i've tried the command that u gave me, but it just says
> invalid option and unrecongonized option. The exact message is like this:
>
> % gcc -09 -mpentium -S bblsortc.c
> gcc: unrecognized option `-09'
> cc1: invalid option `pentium'
seems to me that your gcc isn't EGCS/PGCC. try
% gcc -v
i think only pgcc knows optimize level higher than 7.
egcs/pgcc and gcc 2.8 or higher knows 586 or higher -m option
that says, your gcc is gcc 2.7.x, isn't it?
> working in a Lynx environment where
> i have to install and compile these EGCS is really new to me
Lynx!!
i haven't work on lynx, so i don't know everything i wrote
is valid under Lynx.
--
yashi
- Raw text -