Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-02

fpc assembler

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krishna

Hi all,

Is it possible (ok, without too much work) to make a standalone version of the assembler buried inside fpc? Would be interesting as it would be able to handle both AT&T and Intel syntax.

I tried feeding some (straight) asm files to the compiler (silly me!) but it bombed. Does fpc accept asm files?

Cheers,
Krishna

We will never run out of things to program as long as there is a single program around. - Alan Perlis
Daniël Mantione
to Krishna

Op Sat, 24 Feb 2007, schreef Krishna:

Hi all, Is it possible (ok, without too much work) to make a standalone version of the assembler buried inside fpc?

It is possible and doable, however, I'm not sure what your definition of "not much work" is.

Would be interesting as it would be able to handle both AT&T and Intel syntax.

The assembler reader use a "asmgetchar" procedure to get source code from the scanner. This probably where you would want to hook them.

I tried feeding some (straight) asm files to the compiler (silly me!) but it bombed. Does fpc accept asm files?

Definately a no.

Daniël