From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,b469a22c1c5bccd6,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2002-03-20 11:30:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!info1.fnal.gov!nntp.upenn.edu!elk.ncren.net!canoe.uoregon.edu!arclight.uoregon.edu!newsfeed.mathworks.com!cyclone.swbell.net!easynews!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: "Randall Hyde" Newsgroups: comp.os.linux.announce Subject: Linux version of HLA (High Level Assembler) now available! Date: Wed, 20 Mar 2002 13:26:01 CST Organization: Prodigy Internet http://www.prodigy.com Message-ID: <0nwl8.17345$ih7.232350868@newssvr14.news.prodigy.com> Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1016500796 ST000 172.133.162.172 (Mon, 18 Mar 2002 20:19:56 EST) NNTP-Posting-Date: Mon, 18 Mar 2002 20:19:56 EST X-UserInfo1: Q[RGGTOGTRUUCTLXCJJX__PAZZ_TPUDO@HTHOCULF@^PGDTFOG[]VCWZBL[\YUWHANGYZEFNHFZPNLOBUNSS^_LGEVWEY\PHO@YJSSWBBDT\PFD^ESBTXVCCMTD]JCJLE\_IJMFNRY]SWE[S[D_CNB__ZK^VGVCKHA[S@COB^[@ZQSDFQ\BPMS@DZVUKQTJL X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAPJjiSSFvAtx2nXvNAQElJAH8D+prdH+lSby7Ef0Ca1V8F9s3aGchdZX9 T7qDgLEvfsdS0ROSh11a0HQWyWXPJbHdJmlsd+HcVautvS/GpxTVhA== =ncO5 Xref: archiver1.google.com comp.os.linux.announce:1909 That's right! HLA v1.32 runs under both Windows and Linux. Best of all, (well-written) HLA programs will compile and run on either operating system unchanged! (Who says assembly language can't be portable?) You can download a Linux or Windows (or both) version of HLA v1.32 from http://webster.cs.ucr.edu HLA, the High Level Assembler, is a powerful x86 assembly language that supports a Pascal/C/Modula-2-like syntax that makes learning and using assembly language very easy. Although originally written as a tool to teach assembly language programming to University Students, HLA's advanced features make it a natural for advanced assembly language programmers as well. The HLA package includes the "HLA Standard Library" a package of hundreds of functions, macro, data declarations, and other HLA code, that makes assembly language programming trivial. The HLA Standard Library is available for Linux and Windows, so code that calls the HLA Standard Library is portable between the two OSes. A Linux edition of "The Art of Assembly Language Programming" provides the perfect text for beginners who know a high level programming language and want to learn assembly language programming under Linux. You can find "Art of Asm" at the Web URL above. In addition to the 1,500 pages appearing in the "Art of Asm," the HLA package also includes over 500 pages of documentation, articles, and other information related to HLA programming. Programs written in HLA are far more readable than programs written in traditional assembly language. For example, here is the ubiquitous "Hello World" program written in HLA: program HelloWorld; #include( "stdlib.hhf" ) begin HelloWorld; stdout.put( "Hello World" nl ); end HelloWorld; No, this doesn't look at all like assembly language, but that's because it's such a trivial program (just invokes a macro in the HLA Standard Library). Here's a more practical example that actually has some recognizable machine instructions in it: program DemoRecursion; #include( "stdlib.hhf" ); var myfib:int32; /* ** Compute fibonocci sequence (digusting, slow, way ) ** using a recursive call. */ procedure fib( n:int32 ); @nodisplay; begin fib; if( n <= 2 ) then mov( 1, eax ); else mov( n, eax ); // Compute fib( n-1 ); dec( eax ); fib( eax ); push( eax ); // Save result of fib(n-1); mov( n, eax ); // Compute fib( n-2 ); sub( 2, eax ); fib( eax ); add( [esp], eax ); // Add fib(n-1) and fib(n-2) add( 4, esp ); // Clean up stack. endif; end fib; begin DemoRecursion; mov( 0, myfib ); while( myfib < 10 ) do fib( myfib ); stdout.put( "fib(", myfib, ") = ", (type int32 eax ), nl ); inc( myfib ); endwhile; end DemoRecursion; For die-hard assembly fans, don't get the impression that you have to use statements like "IF" and "WHILE" in an HLA program. HLA also allows CMPs and conditional jumps if you prefer to write your assembly code the old fashioned way. HLA is totally free (i.e., public domain) and is available in executable and source form. HLA was written using Flex/Bison/C and a few lines of assembly code (HLA). Don't let the version number fool you. HLA has been around since 1999 and "v1.32" signifies that HLA has gone through 32 revisions since version 1.0 (the build counter is in excess of 5000 builds as this is being written). While HLA v1.x is a prototype for the HLA language, it has found use on some very major projects (including the implementation of HLA v2.0 currently underway). While HLA certainly isn't "defect-free," it has had several years of use and has achieved a level of quality few public domain programs ever achieve. ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################