randall hyde's high level assembly!

Mayuresh Kathe mayuresh at kathe.in
Fri Jun 12 10:02:32 UTC 2015


On 2015-06-12 15:11, Mehmet Erol Sanliturk wrote:
> On Thu, Jun 11, 2015 at 11:37 PM, Mayuresh Kathe <mayuresh at kathe.in>
> wrote:
> 
>> On 2015-06-12 11:24, Mehmet Erol Sanliturk wrote:
>> On Thu, Jun 11, 2015 at 10:45 PM, Mayuresh Kathe
>> <mayuresh at kathe.in>
>> wrote:
>> 
>> On 2015-06-12 11:04, Mehmet Erol Sanliturk wrote:
>> On Thu, Jun 11, 2015 at 9:29 PM, Mayuresh Kathe <mayuresh at kathe.in>
>> wrote:
>> 
>> hi matthew,
>> 
>> no luck, I got the following message;
>> root at www:~ # pkg install hla
>> Updating FreeBSD repository catalogue...
>> FreeBSD repository is up-to-date.
>> All repositories are up-to-date.
>> pkg: No packages available to install matching 'hla' have been
>> found in the repositories
>> 
>> `uname -a` gives me the following;
>> FreeBSD www.kathe.in [1] [1] [1] 10.1-RELEASE-p10 FreeBSD
>> 10.1-RELEASE-p10
>> #0: Wed May 13 06:54:13 UTC 2015
>> root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
>> amd64
>> 
>> `freebsd-version` gives me the following;
>> 10.1-RELEASE-p11
>> 
>> anything i might be doing wrong?
>> 
>> ~mayuresh
>> 
>> On 2015-06-12 09:26, Matthew Pherigo wrote:
>> Hey Mayuresh,
>> 
>> There's actually a port in the tree already! 'pkg install hla'
>> 
>> --Matt
>> 
>> On Jun 11, 2015, at 5:52 AM, Mayuresh Kathe <mayuresh at kathe.in>
>> wrote:
>> 
>> has anyone been successful at working with randall hyde's high
>> level assembly toolkit under freebsd 10.x?
>> http://www.plantation-productions.com/Webster/ [2] [2] [2] claims
>> to
>> have a
>> pre-built archive, but one that fails to assemble the binaries. :(
>> 
>> ~mayuresh
>> 
>> _______________________________________________
>> 
>> Is hla able to generate 64-bit machine code for amd64 ?
>> 
>> It seems that it is for 32-bits , i.e. i386 .
>> 
>> i have been able to run and test 'hla' under amd64 systems running
>> ubuntu.
>> any particular reason why it will not run under freebsd 64-bit?
>> one of the things that could be a problem might be the "assembler"
>> itself, i couldn't find "gas" or an equivalent under freebsd.
>> 
>> ~mayuresh
>> 
>> Can you use Nasm ?
>> 
>> CD /USR/PORTS/DEVEL/NASM
>> MAKE INSTALL
>> 
>> http://forum.nasm.us/index.php?topic=1283.0 [3] [3]
> 
>  thanks for that tip mehmet, much appreciate it.
> 
>  i hadn't known about "nasm", looking it up led me to a book on
> assembly language programming by jeff duntemann, which seems to be a
> lot more realistic than the one by randall hyde.
> 
>  again, thanks a million mehmet. :)
> 
>  ~mayuresh
> 
> 64 bits operating systems are different from 32 bits operating systems
> .
> 
> During working with assemblers , it is necessary to distinguish this
> feature .
> 
> In a 64 bits operating system , if 32 bits programs will be used , it
> is necessary to have 32 bits libraries and support by the operating
> system .
> 
> This means that you can not execute 32 bits programs in a 64 bits
> operating system without such support .
> 
> In the following page :
> 
> http://www.duntemann.com/assembly.html [4]
> 
> read
> 
> "If You Have a 64-Bit PC..."
> 
> the especially .
> 
> "64-Bit PC" is misleading : It should be "64-Bit Operating System" .
> 
> Both Intel and AMD x86 processors mainly support both 32 and 64 bit
> operating systems : They are able to execute 32 and 64 bit
> instructions .
> 
> Therefore , important points are bit size of ( 32 or 64 ) operating
> system , and handling capability of this feature by compilers and
> availability of libraries , and support by the operating system .
> 
> It is necessary to have information about 64 bit assembly programming
> in an 64 bit operating system .
> 
> http://www.amazon.com/Introduction-Intel-Assembly-Language-Programming/dp/1478119209/ref=pd_sim_14_1?ie=UTF8&refRID=15NZ1SBWCZAMH1X6KPZG
> [5]
> 
> Introduction to 64 Bit Intel Assembly Language Programming for Linux:
> Second Edition Paperback – June 23, 2012
> by Benjamin Ray Seyfarth (Author)

mehmet, thanks for the link to that book by benjamin ray seyfarth.

my objective for learning assembly was to understand the inner workings 
of the machine, but i guess that could get accomplished with a good 
understanding of "machine organization".

randall hyde's "write great code (vol 1)" is an excellent book on 
"machine organization", just that one of the languages used for example 
code is 'hla' and hence my inquiry into support for running 'hla' under 
freebsd.

best,

~mayuresh



More information about the freebsd-questions mailing list