s***@crayne.org
2007-04-21 09:05:56 UTC
hi all!
Iam trying to install hla and masm32 as given in Randall Hyde's book
'art of assembly windows version' but i cant get it right.
i went to http://webster.cs.ucr.edu and installed hla v1.91,hla
executable for windows and masm32.
I was reading the book and I encountered a line which i cant
understand.that is 'If possible, you should install HLA using root/
administrator priviledges;....................'.I ignored it.
then i created c:\IHLA.BAT as instructed in the book.
And then went to command prompt and did the following:
-----------------------------------------------------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\Administrator>c:
C:\>IHLA
C:\>path=c:\hla;c:\masm32\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS
\System32
\Wbem
C:\>set lib=c:\masm32\lib;c:\hla\hlalib;;c:\asm\hlalib;D:\asm\hla
\hlalib;C:\hla\
hlalib;C:\hla\hlalib
C:\>set include=c:\hla\include;c:\masm32\include;
C:\>set hlainc=c:\hla\include
C:\>set hlalib=c:\hla\hlalib\hlalib.lib
------------------------------------------------------------------------------------------------------------------------
then i proceeded as given in the book.And the book says
"At this point, HLA should be properly installed and ready to run. Try
typing "hla -?" at the command line prompt and verify that you get the
HLA help message."
------------------------------------------------------------------------------------------------------------------------
C:\> hla -?
Usage: hla options filename(s)
HLA (High Level Assembler - FASM back end, POLINK linker)
Version 1.91 build 12099 (prototype)
options:
-license Display license information.
-@ Do not generate linker response file.
-@@ Force generation of a new linker response file.
-dxx Define VAL symbol xx to have type BOOLEAN and value TRUE.
-dxx=str Defile VAL symbol xx to have type STRING and value str.
-e:name Executable output filename (appends ".exe" under Windows).
-x:name Executable output filename (does not append ".exe").
-o:omf Produce OMF files (for Windows).
-o:coff Produce win32 COFF files (for Windows).
-o:elf Produce ELF files (for Linux).
Press the enter key to continue:
-s Compile to .ASM files only (using default ASM syntax).
-sm Compile to MASM source files only.
-sf Compile to FASM source files only.
-st Compile to TASM source files only.
-sg Compile to GAS source files only.
-c Compile and assemble to object file only.
-cf Compile and assemble to object file only (using FASM).
-cm Compile/assemble to object using MASM (Windows only).
-ct Compile/assemble to object using TASM (Windows only).
-cg Compile/assemble to object using GAS (Linux only).
-co Compile/assemble to object using internal FASM back-end.
-xf Compile/assemble/link to executable (using FASM).
-xm Compile/assemble/link to object using MASM (Windows only).
-xt Compile/assemble/link to object using TASM (Windows only).
-xg Compile/assemble/link to object using GAS (Linux only).
-xo Compile/assemble/link to object internal FASM back-end.
Press the enter key to continue:
-axxxxx Pass xxxxx as command line parameter to assembler.
-lxxxxx Pass xxxxx as command line parameter to linker.
-m Create a map file during link
-w Compile as windows app (default is console app).
-polink Force use of Pelles C linker/resource compiler.
-mslink Force use of Microsoft linker/resource compiler.
-sym Dump symbol table after compile.
-test Send diagnostic info to stdout rather than stderr.
-p:path Use <path> as the working directory for temporary files.
(overrides hlatmp environment variable.)
-r:name <name> is a text file containing cmd line options.
-obj:path Use <path> as the directory to hold the object files.
-v Verbose compile (also sends output to stdout).
-level=h High-level assembly language.
-level=m Medium-level assembly language.
-level=l Low-level assembly language.
-level=v Machine-level assembly language (very low level).
-? Display this help message.
Press the enter key to continue:
Include and Library Path Control:
-i:path Include path (used to override HLAINC environment
variable).
-lib:path Library path (used to overide HLALIB environment
variable).
HLA Environment Variables:
hlalib=<path> sets path to hlalib.lib file (e.g., c:\hla\hlalib
\hlalib.lib)
hlainc=<path> sets path to HLA include subdirectory (e.g., c:\hla
\include)
hlatmp=<path> sets path to directory to hold temp files (optional)
hla=<asm> sets default assembler behavior
<asm>:
hla- uses internal version of FASM
ohla- uses internal version of FASM
fhla- uses FASM as the back-end assembler
Windows Only:
mhla- uses MASM as the back-end assembler
thla- uses TASM as the back-end assembler
Linux Only:
ghla- uses GAS as the back-end assembler
hlalink=<lnkr> sets default linker behavior
<lnkr>:
Windows Only:
mslink- use Microsoft's link.exe linker
polink- use the Pelles C polink.exe linker
Linux Only:
ld- use the FSF/GNU ld linker
-------------------------------------------------------------------------------------------------------------------------
obviously, i dont know what's the meaning of all this.doesnt look like
a help message to me.But i decided to proceed.
Then i typed 'ML/?' (as the book says).Some information came onscreen
and 'the book asks' me to ignore it.Similarly i typed 'link/?' and
ignored what came onscreen.
Finally, i typed
----------------------
program HelloWorld;
#include( "stdlib.hhf" )
begin HelloWorld;
stdout.put( "Hello, World of Assembly Language", nl );
end HelloWorld;
----------------------
into a text editor and saved it as 'c:\HW.HLA'.And then went to
command prompt and typed "HLA -v HW".(again I dont know what it
means).
the following is what came onscreen..........
------------------------------------------------------------------------------------------------------------------------------
C:\>HW.HLA
C:\>HLA -v HW
HLA (High Level Assembler)
Use '-license' to see licensing information.
Version Version 1.91 build 12099 (prototype)
Win32 COFF output
OBJ output using internal FASM back-end
-test active
HLA Lib Path: c:\hla\hlalib\hlalib.lib
HLA include path: c:\hla\include
HLA temp path:
Linker Lib Path: c:\masm32\lib;c:\hla\hlalib;;c:\asm\hlalib;D:\asm\hla
\hlalib;C
:\hla\hlalib;C:\hla\hlalib;c:\hla\hlalib
Files:
1: HW.hla
Compiling 'HW.hla' to 'HW.obj'
using command line [hlaparse -level=high -v -sf -ccoff -test
"HW.hla"]
----------------------
HLA (High Level Assembler) Parser
use '-license' to view license information
Version Version 1.91 build 12098 (prototype)
-t active
File: HW.hla
Output Path: ""
Language Level: high
Compiling "HW.hla" to "HW.obj"
Compilation complete, 7820 lines, 0.063 seconds, 124127 lines/
second
Using flat assembler version C1.66
3 passes, 932 bytes.
----------------------
Linking via [polink @HW.link._.link]
POLINK: warning: /SECTION:.bss ignored; section is missing.
C:\>
----------------------------------------------------------------------------------------------------------------
But this is not what's supposed to come onscreen.it should have
been ......
-----------------------------------------
HLA (High Level Assembler)
Written by Randall Hyde and released to the public domain.
Version Version 1.32 build 4904 (prototype)
Files:
1: hw.hla
Compiling "hw.hla" to "hw.asm"
Assembling hw.asm via "ml /c /coff /Cp hw.asm"
......
......
(blah blah blah)
----------------------------------------------------
Can anyone say(or predict) where i went wrong???
Iam trying to install hla and masm32 as given in Randall Hyde's book
'art of assembly windows version' but i cant get it right.
i went to http://webster.cs.ucr.edu and installed hla v1.91,hla
executable for windows and masm32.
I was reading the book and I encountered a line which i cant
understand.that is 'If possible, you should install HLA using root/
administrator priviledges;....................'.I ignored it.
then i created c:\IHLA.BAT as instructed in the book.
And then went to command prompt and did the following:
-----------------------------------------------------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\Administrator>c:
C:\>IHLA
C:\>path=c:\hla;c:\masm32\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS
\System32
\Wbem
C:\>set lib=c:\masm32\lib;c:\hla\hlalib;;c:\asm\hlalib;D:\asm\hla
\hlalib;C:\hla\
hlalib;C:\hla\hlalib
C:\>set include=c:\hla\include;c:\masm32\include;
C:\>set hlainc=c:\hla\include
C:\>set hlalib=c:\hla\hlalib\hlalib.lib
------------------------------------------------------------------------------------------------------------------------
then i proceeded as given in the book.And the book says
"At this point, HLA should be properly installed and ready to run. Try
typing "hla -?" at the command line prompt and verify that you get the
HLA help message."
------------------------------------------------------------------------------------------------------------------------
C:\> hla -?
Usage: hla options filename(s)
HLA (High Level Assembler - FASM back end, POLINK linker)
Version 1.91 build 12099 (prototype)
options:
-license Display license information.
-@ Do not generate linker response file.
-@@ Force generation of a new linker response file.
-dxx Define VAL symbol xx to have type BOOLEAN and value TRUE.
-dxx=str Defile VAL symbol xx to have type STRING and value str.
-e:name Executable output filename (appends ".exe" under Windows).
-x:name Executable output filename (does not append ".exe").
-o:omf Produce OMF files (for Windows).
-o:coff Produce win32 COFF files (for Windows).
-o:elf Produce ELF files (for Linux).
Press the enter key to continue:
-s Compile to .ASM files only (using default ASM syntax).
-sm Compile to MASM source files only.
-sf Compile to FASM source files only.
-st Compile to TASM source files only.
-sg Compile to GAS source files only.
-c Compile and assemble to object file only.
-cf Compile and assemble to object file only (using FASM).
-cm Compile/assemble to object using MASM (Windows only).
-ct Compile/assemble to object using TASM (Windows only).
-cg Compile/assemble to object using GAS (Linux only).
-co Compile/assemble to object using internal FASM back-end.
-xf Compile/assemble/link to executable (using FASM).
-xm Compile/assemble/link to object using MASM (Windows only).
-xt Compile/assemble/link to object using TASM (Windows only).
-xg Compile/assemble/link to object using GAS (Linux only).
-xo Compile/assemble/link to object internal FASM back-end.
Press the enter key to continue:
-axxxxx Pass xxxxx as command line parameter to assembler.
-lxxxxx Pass xxxxx as command line parameter to linker.
-m Create a map file during link
-w Compile as windows app (default is console app).
-polink Force use of Pelles C linker/resource compiler.
-mslink Force use of Microsoft linker/resource compiler.
-sym Dump symbol table after compile.
-test Send diagnostic info to stdout rather than stderr.
-p:path Use <path> as the working directory for temporary files.
(overrides hlatmp environment variable.)
-r:name <name> is a text file containing cmd line options.
-obj:path Use <path> as the directory to hold the object files.
-v Verbose compile (also sends output to stdout).
-level=h High-level assembly language.
-level=m Medium-level assembly language.
-level=l Low-level assembly language.
-level=v Machine-level assembly language (very low level).
-? Display this help message.
Press the enter key to continue:
Include and Library Path Control:
-i:path Include path (used to override HLAINC environment
variable).
-lib:path Library path (used to overide HLALIB environment
variable).
HLA Environment Variables:
hlalib=<path> sets path to hlalib.lib file (e.g., c:\hla\hlalib
\hlalib.lib)
hlainc=<path> sets path to HLA include subdirectory (e.g., c:\hla
\include)
hlatmp=<path> sets path to directory to hold temp files (optional)
hla=<asm> sets default assembler behavior
<asm>:
hla- uses internal version of FASM
ohla- uses internal version of FASM
fhla- uses FASM as the back-end assembler
Windows Only:
mhla- uses MASM as the back-end assembler
thla- uses TASM as the back-end assembler
Linux Only:
ghla- uses GAS as the back-end assembler
hlalink=<lnkr> sets default linker behavior
<lnkr>:
Windows Only:
mslink- use Microsoft's link.exe linker
polink- use the Pelles C polink.exe linker
Linux Only:
ld- use the FSF/GNU ld linker
-------------------------------------------------------------------------------------------------------------------------
obviously, i dont know what's the meaning of all this.doesnt look like
a help message to me.But i decided to proceed.
Then i typed 'ML/?' (as the book says).Some information came onscreen
and 'the book asks' me to ignore it.Similarly i typed 'link/?' and
ignored what came onscreen.
Finally, i typed
----------------------
program HelloWorld;
#include( "stdlib.hhf" )
begin HelloWorld;
stdout.put( "Hello, World of Assembly Language", nl );
end HelloWorld;
----------------------
into a text editor and saved it as 'c:\HW.HLA'.And then went to
command prompt and typed "HLA -v HW".(again I dont know what it
means).
the following is what came onscreen..........
------------------------------------------------------------------------------------------------------------------------------
C:\>HW.HLA
C:\>HLA -v HW
HLA (High Level Assembler)
Use '-license' to see licensing information.
Version Version 1.91 build 12099 (prototype)
Win32 COFF output
OBJ output using internal FASM back-end
-test active
HLA Lib Path: c:\hla\hlalib\hlalib.lib
HLA include path: c:\hla\include
HLA temp path:
Linker Lib Path: c:\masm32\lib;c:\hla\hlalib;;c:\asm\hlalib;D:\asm\hla
\hlalib;C
:\hla\hlalib;C:\hla\hlalib;c:\hla\hlalib
Files:
1: HW.hla
Compiling 'HW.hla' to 'HW.obj'
using command line [hlaparse -level=high -v -sf -ccoff -test
"HW.hla"]
----------------------
HLA (High Level Assembler) Parser
use '-license' to view license information
Version Version 1.91 build 12098 (prototype)
-t active
File: HW.hla
Output Path: ""
Language Level: high
Compiling "HW.hla" to "HW.obj"
Compilation complete, 7820 lines, 0.063 seconds, 124127 lines/
second
Using flat assembler version C1.66
3 passes, 932 bytes.
----------------------
Linking via [polink @HW.link._.link]
POLINK: warning: /SECTION:.bss ignored; section is missing.
C:\>
----------------------------------------------------------------------------------------------------------------
But this is not what's supposed to come onscreen.it should have
been ......
-----------------------------------------
HLA (High Level Assembler)
Written by Randall Hyde and released to the public domain.
Version Version 1.32 build 4904 (prototype)
Files:
1: hw.hla
Compiling "hw.hla" to "hw.asm"
Assembling hw.asm via "ml /c /coff /Cp hw.asm"
......
......
(blah blah blah)
----------------------------------------------------
Can anyone say(or predict) where i went wrong???