High Level Assembly 53
dunric writes "Randall Hyde has developed a programming language called High Level Assembly (HLA). It is a great way for new programmers to develop applications for both Windows and Linux. It works with a variety of assemblers, including Gas, Fasm, Masm and others. The website for Randy's HLA is located at: http://webster.cs.ucr.edu/"
....meanwhile in other news...... (Score:3, Interesting)
BTW, PLC's are commonly programmed in "assembler", but the industrial automation worlds idea of Assembler is remarkebly similar to this HLA.
Re:Relax, it's a teaching tool... (Score:3, Interesting)
We (Goodman [wisc.edu], et al) designed SAL back in 1990 when the CS354 Computer Organization and Programming was moved from VAX. I was a TA at the time and added the SAL code onto Spim.
Re:FAQ (Score:3, Interesting)
to optimize critical sections on sensitive platforms
or to access memory-mapped hardware registers
is the sine qua non for the very option of
writing portable code. Absent this ability, we'd
have to write entire systems in low-level asm.
Re:Teaching? Yes. Applications? Er.. why? (Score:4, Interesting)
Nobody can answer the question -- why do you need a language that has none of the advantadges of assembley, AND none of the advantadges of a higher level language?
Structured assembly language not new (Score:4, Interesting)
Assuming a common role of assembler, to fine-tune a critical smallish bit of code, I can see the convenience of having a higher level than normal of language constructs. It can make the flow of logic more transparent, (e.g. nestable conditional blocks, loops with readable criteria, repeat-until, do-while, switch/case structure, etc).
On the other hand, providing this kind of pseudo-high level language structure in assembler programs has been around a long time, and can be done more simply. I still have an assembler macro library around that in its original version (circulated on 80s bbs networks) did this for at least some early versions of MASM and TASM.
(Most of the identifiers would probably have to be changed for compatibility with newer assemblers because it used non-standard initial characters to enable constructs looking a bit like (ignore the 1--- 's, they just adjust formatting in the Slashdot editor)
1----
1----
1------ (whatever code)
1----
1--------
1----------- (whatever other code)
1--------
1----
and suchlike constructs).
As I first read it, it was a macro library carrying a by-line from 'Jim Holtman, 1982'. It was not very big, the whole thing (even after some more macros for other logic-extensions were added)came to an include-file size of no more than about 10 kb.
Maybe it's not clear why anything bigger would be needed.
-wb-
Re:Relax, it's a teaching tool... (Score:2, Interesting)
Google tells me the kids use java to simulate [highpoint.edu] it now.
Re:wow, displays (Score:2, Interesting)
I did this independently 20 years ago. (Score:2, Interesting)
After some time, I decided hex codes sucked big time. So I decided to code an assembler in BASIC.
Also, I always found assembly syntax awkward... so instead of:
LD HL, DE
I would write:
HL
Pascal-like, but no semicolon at the end. Memory references were like:
A
JMPs were written as GOTO, while conditional branches were written as:
IF A <> 0 THEN GOTO LABEL, meaning JNZ LABEL.
EQUs were CONSTS, DWs were INTEGERS, DBs were CHAR (or BYTE, more probably).
I had a lot of fun.
The first thing I wrote was the assembler itself, just changing the BASIC commands to my above described lingo.
It took the BASIC program one entire hour to "assemble" it. Later, I used the same code thru the newly generated assembler. It was assembled in nearly 60 seconds.
At first, I thought it had failed...
Those were the good times...
Re:High Level Assembly (HLA) (Score:3, Interesting)
dsp and rendering are two areas I have experience optimizing inner loops for. sometimes you can split up the work at a higher level to run on seperate machines. sometimes you can't. it's _never_ a case of you could always split it up, and it would be easier than optimizing the inner loop in asm. most of the time figuring out how to split up a task to be executed on seperate machines is much more involved than optimizing redundant instructions out've an inner loop.