Mail Archives: djgpp/1994/06/08/10:20:40
> My desire to use familier i386 syntax to write assembler for my programs
> has pushed me into decideing to write a converter between intel 386 and
> the form used by gas.
>
> Has anyone got any advice for me before I start on this, eg how do you think
> I should do it and can you forsee any pitfalls.
>
> At the moment I am thinking about producing a hybrid assember format with
> standerd 386 instructions and gas style comments and structure (.data .text
> etc...) and write a source to source file converter that can be included in
> a make file as a pre-processor kind of stage.
>
> any ideas anyone?
Well, if you can be bothered to learn one, you could use a text processing
language like perl, awk, or yacc/lex. This would have the advantage of being
extremely quick to write, once you've figured out the basics of the language.
Gnu Gawk/Bison/Flex would be worth looking at.
Alan
-------------------------------------------------------------
| | amh15 AT cus DOT cam DOT ac DOT uk --- Work Tel: +44 223 337493 |
| Alan | Fax: +44 223 337706 --- Home Tel: +44 223 244595 |
| Hart | Microelectronics Research Centre, Cavendish Lab, |
| | Madingley Road, Cambridge, ENGLAND. CB3 0HE |
-------------------------------------------------------------
- Raw text -