Re: newbie: I/O with nasm



James Daughtry wrote:
randyhyde@xxxxxxxxxxxxx wrote:
And yep, it is assembly (as opposed to C, which carries
around more run-time overhead and requirements).

Howdy, what do you use on the back-end for your library?

Randy's word will be definitive, but I believe it calls the API of the
underlying OS.

Since you say
it's assembly, does that mean you use strictly interrupts?

If you mean hardware interrupts, then no, user mode code like the HLA
stdlib isn't even allowed to do so. For Linux it calls READ and WRITE
system calls via INT 80h and for Windows, probably ReadFile() and
WriteFile()

If so, do
you provide source that I can mess around with? :-)

He provides the full source for the standard library as well as the HLA
compiler. You can find it from the following website. However the
standard library is written in HLA, so, you would need to know HLA in
order to understand it. The current compiler is written in Bison and C.

http://webster.cs.ucr.edu

.



Relevant Pages

  • Re: HLA
    ... inline assembler for that compiler. ... different beast from a standalone assembler and IMHO, HLA is most ... It could be added to almost any C compiler without problems... ... then you're no longer programming in the standard form of the ...
    (alt.lang.asm)
  • Re: HLA suggestions
    ... >>HLA source, ... >>1) Currently, to build HLA from scratch, one needs to get the compiler ... > For symbolic information, you can do this under Windows ...
    (alt.lang.asm)
  • Re: HLA v2.x and / or LASM suggestion: Win32 Resources
    ... > With Microsoft's RC compiler, I've just noticed that it's less capable ... > binary resource converted into readable, ... selecting the particular assembler syntax you want to output for. ... > are using that RC compiler via HLA or whatever;)... ...
    (alt.lang.asm)
  • Re: Wiki, some vicious editing
    ... every reference to "compiler" there, too; given that HLA works the same ... How can you compare HLA with GCC ?? ...
    (alt.lang.asm)
  • Re: Development for High Level Assembler revisited
    ... The compiler itself is over 100,000 lines of source code, ... Given the fact that HLA v2.0 is a complete rewrite of ... > can update the SourceForge site. ... How many programmers did offer any useful contributions for documentation or source code improvements and updates for the planned new architecture so far? ...
    (alt.lang.asm)