Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: DaveR <spamtrap@xxxxxxxxxx>
- Date: Wed, 27 Feb 2008 16:14:55 -0800 (PST)
Ok - thanks for the help guys! - I'll do my best. As you say, whilst
I'm happy to give NASM a go ( once I know a bit of assembler ) it
would be nice to get HLA working on my linux box, as it would make
following the book a lot easier ( BTW - I'm finding the book really
good and well layed out - only having done high level languages
before, this is all very enlightening... :-> )
Ok - now for the info that you wanted:
First - yes my install of FC8 is 32 bit.
Second - install paths. I have the following setup
HLA 1.99 installed in /home/david/local/hla1.99
HLA 1.97 installed in /home/david/local/hla1.97
A symlink from /home/david/local/hla -> hla1.9X (depending on which
version I'm testing)
and the following env vars set:
[david@beechwood:~/local ] $ env | grep hla
hlalib=/home/david/local/hla/hlalib/hlalib.a
hlainc=/home/david/local/hla/include
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/david/local/
hla:/home/david/bin
Third - core dumps - I have done a little bit of C programming so have
some experience of gdb and examining core dumps, however , I'm not
really sure how this translates to assembler...
.... Having just written the out the above, whilst trying to get some
more info I have now found a way to make it work , by switching the
assemblers
With internal FASM:
[david@beechwood:~/local/AoA/Volume1/Ch02 ] $ hla -xo
HelloWorldWithVar.hla
[david@beechwood:~/local/AoA/Volume1/Ch02 ] $ ./HelloWorldWithVar
Hello, World of Assembly Language
InitDemo's value is Segmentation fault (core dumped)
With Gas:
[david@beechwood:~/local/AoA/Volume1/Ch02 ] $ hla -xg
HelloWorldWithVar.hla
[david@beechwood:~/local/AoA/Volume1/Ch02 ] $ ./HelloWorldWithVar
Hello, World of Assembly Language
InitDemo's value is 5
Any thoughts on why this might be ( although now I can get on with
trying the examples :-> ... )?
Many thanks for all your help and advice!
Regards
David
.
- Follow-Ups:
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: Frank Kotler
- Re: [Clax86list] Seg fault with hla 1.99 on Fedora 8 linux
- From: Charles Crayne
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- References:
- Seg fault with hla 1.99 on Fedora 8 linux
- From: DaveR
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: Frank Kotler
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: nbaker2328
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: DaveR
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: nbaker2328
- Re: Seg fault with hla 1.99 on Fedora 8 linux
- From: Frank Kotler
- Re: [Clax86list] Seg fault with hla 1.99 on Fedora 8 linux
- From: Charles Crayne
- Seg fault with hla 1.99 on Fedora 8 linux
- Prev by Date: Re: Why BIOS maps in range 0x000F0000-0x000FFFF ?
- Next by Date: Re: [Clax86list] Seg fault with hla 1.99 on Fedora 8 linux
- Previous by thread: Re: [Clax86list] Seg fault with hla 1.99 on Fedora 8 linux
- Next by thread: Re: [Clax86list] Seg fault with hla 1.99 on Fedora 8 linux
- Index(es):