I have some very nice units written for Turbo Pascal / Delphi. They make use of the in-line assembler, whose syntax is different from GPC's. Could anyone tell me how I could translate them in order for them to be compilable by GPC?
Thanks very much
Silvio a Beccara Cornell University
On 17 Nov 2003 at 16:28, Silvio a Beccara wrote:
I have some very nice units written for Turbo Pascal / Delphi. They make use of the in-line assembler, whose syntax is different from GPC's. Could anyone tell me how I could translate them in order for them to be compilable by GPC?
Best option: convert the asm routines into Pascal.
Next best option: read this document on how to convert Intel syntax asm to AT&T syntax: http://gnu-pascal.de/contrib/misc/gpcasm.zip
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/
On 17 Nov 2003 at 16:28, Silvio a Beccara wrote:
They make use of the in-line assembler, whose syntax is different from GPC's. Could anyone tell me how I could translate them in order for them to be compilable by GPC?
I have just started to investigate inline assembler for GPC and have found the current GCC documentation to be helpful:
http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Extended-Asm.html
and:
http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Constraints.html
-- Dave