[opensuse-programming] GAS
I have been writing some routines in assembler using nasm & ld (compile and link) and gdb for debuggin. I am going to be converting these routines to the at&t syntax and pass them off to gcc(gas) so that I will have access to libc. I have been reading about the gcc compiler, and have been examining its .s files (at&t syntax) which are fed to GAS. GAS is supposed to ship with binutils, but I do not find it on my system as a separate utility... I use gcc every day so obviously gas is there somewhere. Can someone please tell me whether gcc still uses gas? ... is gas internal to gcc now? Also, I have read rumors that the latest gas code supports the intel syntax... true? Thanks -- Kind regards, M Harris <>< --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Wed, 25 Apr 2007 16:08:12 -0500, M Harris wrote:
GAS is supposed to ship with binutils, but I do not find it on my system as a separate utility...
Just do a 'rpm -ql binutils' and you'll see if the binutils (ar, ld, gas, nm, objdump) have been installed.
I use gcc every day so obviously gas is there somewhere. Can someone please tell me whether gcc still uses gas?
Yes, it does so and will continue for the forseeable future :)
... is gas internal to gcc now?
No.
Also, I have read rumors that the latest gas code supports the intel syntax... true?
True. But AFAIK you have to explicitly tell gas that you're using Intel syntax. Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Wednesday 25 April 2007 20:32, Philipp Thomas wrote:
Just do a 'rpm -ql binutils' and you'll see if the binutils (ar, ld, gas, nm, objdump) have been installed.
I use gcc every day so obviously gas is there somewhere. Can someone please tell me whether gcc still uses gas? Thanks Philipp.
Yes, binutils is installed and I can see: /usr/bin/ar /usr/bin/objdump /usr/bin/nm /usr/bin/ld but, there is no gas... anywhere on the system... however, gcc works just fine. I am running openSUSE 10.0. where is gas... can it be run at the cli ? -- Kind regards, M Harris <>< --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Wednesday 25 April 2007 22:13, M Harris wrote:
Yes, binutils is installed and I can see: /usr/bin/ar /usr/bin/objdump /usr/bin/nm /usr/bin/ld but, there is no gas... anywhere on the system...
however, gcc works just fine. I am running openSUSE 10.0.
where is gas... can it be run at the cli ? ehem. Well, gas is actually.... drum roll.... "as"
So, now... the question is... is this an openSUSE thing? Does everyone else call it gas, and suse calls it ... as. Of course the assembler is called (man as) the Portable Assembler... so I suppose they could have called the executable "pas" well... pas, gas, or as.... the whole thing is really starting to sound funny now... seems like a brain fart after all. Anyway, I'm happily experimenting with "as" and thinking I should just stick with nasm. :-} -- Kind regards, M Harris <>< --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Thu, Apr 26, 2007 at 02:03:07AM -0500, M Harris wrote:
ehem. Well, gas is actually.... drum roll.... "as"
So, now... the question is... is this an openSUSE thing?
No. See http://www.gnu.org/software/binutils/ -- Sonja Krause-Harder (skh@suse.de) SUSE Research & Development ----------------------------------------------------------------- SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Thursday 26 April 2007 02:03, Sonja Krause-Harder wrote:
No. See http://www.gnu.org/software/binutils/ This is helpful. Thank you.
-- Kind regards, M Harris <>< --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
participants (3)
-
M Harris
-
Philipp Thomas
-
Sonja Krause-Harder