Hello,
We have been trying to compile in-line assembler code in our pascal programs using gpc-20010623 .We are porting the sources from windows to sparc-sunsolaris 2.6 and we have some problems with compiling the asm code.The gas says that it is not able to recognise the opcodes "push","pop","cld".. The link to Mr.Brennan's site given in the FAQ has a ~ and we are not able to reach the site. Can you kindly tell us where we can get some help on compiling asm on sparc-sun-solaris.
Thanks and Regards, Anuradha
-- S.Anuradha Generic Data Tools, Alcatel Chennai. Alcanet : 2-757-7123
Anuradha wrote:
We have been trying to compile in-line assembler code in our pascal programs using gpc-20010623 .We are porting the sources from windows to sparc-sunsolaris 2.6 and we have some problems with compiling the asm code.The gas says that it is not able to recognise the opcodes "push","pop","cld"..
Erm, well, different processors use different kinds of assembler code. That's why assembler is considered low-level compared to Pascal.
Basically, you'll have to rewrite all your assembler code for any new processor. Or you translate it to Pascal, then you need only one version. (Since GPC is a Pascal compiler, I think I might mention this option ... ;-)
The link to Mr.Brennan's site given in the FAQ has a ~ and we are not able to reach the site.
Thanks for the hint. In the DJGPP FAQ, I found a new URL: http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html
BTW, I was misspelled (the `_djgpp' part was missing) or has moved -- at least since v2.30 of the FAQ which I have here (in case any of the DJGPP people are reading this, and it hasn't been fixed already).
Can you kindly tell us where we can get some help on compiling asm on sparc-sun-solaris.
No, I haven't had the need to program any asm on the Sparc. Have you searched the net?
Frank