Hey, I too just started "The Art of Assembly Language" and I was
planning on doing my work in a Linux virtual machine through VMWare
Fusion on my MacBook. The version of Linux I'm using is BackTrack 3
(the only linux vm I had on hand) and its running Linux 2.6.21.5.
So, I was able to run the commands listed in the book just fine, got
the executables in the right spot, added the environment variables to
my path, etc. But when I tried to compile that HelloWorld program for
the first time it looked like it worked alright but when trying to run
it, here is what I see:
bt hla# ./hw
Killed
If it matters, heres the output from the command I ran to compile it:
HLA (High Level Assembler) Parser
use '-license' to view license information
Version Version 1.99 build 12922 (prototype)
-t active
File: hw.hla
Output Path: ""
Language Level: high
Compiling "hw.hla" to "hw.o"
Compilation complete, 14838 lines, 0.066 seconds, 224818 lines/
second
Using flat assembler version C1.66
3 p*****, 1499 bytes.
HLA (High Level Assembler)
Use '-license' to see licensing information.
Version Version 1.99 build 12922 (prototype)
ELF output
OBJ output using internal FASM back-end
-test active
HLA Lib Path: /usr/hla/hlalib/hlalib.a
HLA include path: /usr/hla/include
HLA temp path:
Files:
1: hw.hla
Compiling 'hw.hla' to 'hw.o'
using command line:
[hlaparse -level=high -v -sf -celf -test "hw.hla"]
----------------------
----------------------
Linking via [ld -o "hw" "hw.o" "/usr/hla/hlalib/hlalib.a"]


|