On Tue, 2009-04-21 at 14:11 -0600, Greg wrote:
> Do any of you use HLA (Randy Hyde's high level assembler)? 
> 
> I downloaded a copy recently and had no trouble running it on a 32bit CentOS 
> system, but I've had several problems getting 
> it to compile under my amd64 gentoo machine.
> 
> One problem was flex, but updating to the latest alpha version of flex fixed 
> that issue.
> 
> The other issue I'm having is with gas. It doesn't seem to like the pushl and 
> popl psuto opts found in hlaasm.gas.
> 
> Anyone have any suggestions? I thought I'd try picking your brains first 
> since several web searches aren't showing any 
> similar problems listed.
> 
> Thanks in advance,
> Greg
> 

Hi, Greg.

Assembly code is not portable between x86 and amd64, in general.
Anything including assembler will need to have two copies of it.  If
there's only one copy, then this program won't build in 64-bit, and you
will need to build it 32-bit.  This can be done; It generally amounts to
adding -m32 to CFLAGS and convincing any configure-type scripts that
it's on a 32-bit system.

If there *is* 64-bit assembly, then it's probably just a matter of
passing the correct flags to the configuration system to get it to
realize it's building on an amd64 box.

Daniel


Reply via email to