Re: Canonical format for header files (was... who cares?)

From: Randall Hyde (randyhyde_at_earthlink.net)
Date: 02/20/04


Date: Fri, 20 Feb 2004 14:15:46 GMT


<arargh402NOSPAM@NOW.AT.arargh.com> wrote in message
news:20nb30ls0vc1fpr9shtn9mgddnln7u2e3j@4ax.com...
> On Fri, 20 Feb 2004 08:31:01 -0000, "Beth"
>
>
> If you convert a C header file to a NASM include file, you lose so
> much information that converting that file to anything else is
> pointless. That's why I chose to just go from C headers to what I
> need.
>

That's why an intermediate canonical format is such a good idea.
You keep as much semantic information as possible. Assemblers
that can't use it, ignore it. Those that can use it, do.
> I can only just barely read C, and I don't attempt to write anything
> more trivial than 'Hello, World!". So, I wouldn't be much help there.
> But, I am a wizz at Basic, and Assembler (x86 variety). I have
> forgotten most of the IBM 1401, System 360 & Nova Assemblers that I
> knew.
>
> I may look into this conversion project, but probably only as an
> onlooker.

Well, C->canonical form is only one part of the project.
The project also needs volunteers to write code that
translates from canonical form to a specific assembler.
That task is quite a bit easier than C->canonical form.
Cheers,
Randy Hyde



Relevant Pages

  • Canonical format for header files (was... who cares?)
    ... If it isn't in the source language header file, it will need to be added ... conversion from assembler X's syntax to assembler Y's syntax, ... or to the "canonical format". ...
    (alt.lang.asm)
  • Re: RosAsm?
    ... > Show me one assembler program which was converted from ... runs) under 16-bit Windows or 32-bit Windows. ... >> than having to go in and modify each and every source file. ... Quite frankly, if your programs can't accept the change to the header file, ...
    (alt.lang.asm)
  • Re: HLA suggestions
    ... HLA. ... that it's a compiler rather than a "true assembler", ... the current header file scheme ... for Windows or Linux specific files). ...
    (alt.lang.asm)
  • Re: GAS struc
    ... > You have HLA, minus the donkey work done by the "real" assembler, ... > having a one to one correspondence with machine code and converting ... Randy *WAS* in the education business at one time. ... While in academia, Randy was a lecturer; ...
    (alt.lang.asm)
  • Re: Shorter Output - Decimal and Hex Integers
    ... mean using one of the SWIs when converting ... tables and compare numbers in assembler. ... to get carried to x86 assembly :-( ... Parsing hex literals involves shifts, ...
    (comp.sys.acorn.programmer)