Re: Why do we still assemble?

bill@amber.ssd.csd.harris.com (Bill Leonard)
Thu, 14 Apr 1994 14:49:45 GMT

          From comp.compilers

Related articles
[25 earlier articles]
Re: Why do we still assemble? hbaker@netcom.com (1994-04-13)
Re: Why do we still assemble? ok@cs.rmit.oz.au (1994-04-13)
Re: Why do we still assemble? rfg@netcom.com (1994-04-13)
Re: Why do we still assemble? rfg@netcom.com (1994-04-13)
Re: Why do we still assemble? zstern@adobe.com (1994-04-13)
Re: Why do we still assemble? mps@dent.uchicago.edu (1994-04-14)
Re: Why do we still assemble? bill@amber.ssd.csd.harris.com (1994-04-14)
Re: Why do we still assemble? hbaker@netcom.com (1994-04-14)
Re: Why do we still assemble? djohnson@arnold.ucsd.edu (1994-04-15)
Re: Why do we still assemble? philw@tempel.research.att.com (1994-04-15)
Re: Why do we still assemble? pardo@cs.washington.edu (1994-04-15)
Re: Why do we still assemble? wirzeniu@cc.helsinki.fi (Lars Wirzenius) (1994-04-16)
Re: Why do we still assemble? hbaker@netcom.com (1994-04-16)
[2 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: bill@amber.ssd.csd.harris.com (Bill Leonard)
Keywords: assembler, linker
Organization: Harris Computer Systems, Ft. Lauderdale FL
References: 94-04-032 94-04-084
Date: Thu, 14 Apr 1994 14:49:45 GMT

hbaker@netcom.com (Henry G. Baker) writes:
> [RS/6000 compilers disassemble their object to get .s files]
> What an inspired and elegant solution! Any decent system has to have a
> good disassembler, anyway, so it's better to put good manpower into this
    ^^^^
> task than into writing an assembler.


bill@ssd.csd.harris.com writes:
>Well... I don't consider this a very elegant solution, myself. First of
>all, I lose all the local labels and symbols that the compiler generated
>and used but which don't get into the object file.


hbaker@netcom.com (Henry G. Baker) writes:
> I think the operative word here is _good_. Most object file formats I
> have seen include both file-scoped and global symbols, so there is no
> reason why the local labels and symbols shouldn't be there in the -S file.


There is a very good reason why all those local labels shouldn't be there:
disk space!


Anyway, part of my point is that the compiler can put out more "symbolic"
assembler than any disassembler could. The compiler could, for instance,
annotate the assembly code with comments relating register references to
local variables, use variable names as symbolic stack offsets instead of
just numbers, etc.


--
Bill Leonard
Harris Computer Systems Division
2101 W. Cypress Creek Road
Fort Lauderdale, FL 33309
bill@ssd.csd.harris.com
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.