Re: [Hla-stdlib-talk] Porting the HLA stdlib
Brought to you by:
evenbit
From: Nathan B. <eve...@ya...> - 2006-08-02 02:45:03
|
[ cc'ed from MASM32 forum ] Re: Porting the HLA stdlib « Reply #4 on: August 01, 2006, 10:04:17 pm » Well, here's the current status of the porting project. I'm currently in the middle of reorganizing the directories and files that make up the HLA Standard Library. Originally, what I had planned to do was move all the OS dependent files to one directory (to make porting to new OSes easier). However, as I started playing around with the files, I figured it would be a great idea to merge certain source files that were tiny into appropriate file combinations. For example, the stdout.puti8 routine is just a few lines of code and it calls stdout.puti32 (after sign extensions). Likewise, stdout.puti16 is just a few lines of code, which also calls stdout.puti32 (after a sign extension). Because the linker will add up to 15 bytes of padding between separate modules it links together, you wind up wasting a lot of space in the executable if you're linking together a bunch of tiny object modules. Once I get the current phase done, my next step will be to get the automatic make system I've designed (which automatically generates all the make files to build the stdlib) operational under Linux (yeah, I know that doesn't apply to MASM, but before I can post the new version of the HLA stdlib code, I've got to have the Linux port operational). Once the above is complete, the *real* fun can begin. And this is where I can use some help. As I mentioned, there's a lot of work creating MASM, NASM, FASM, and GoAsm header files. I'm assuming I'll be able to get a little bit of help (at least on the MASM header files) around here. The other big task is going to be writing unit tests for all the stdlib modules. What I'll probably do is write a test in HLA and then ask for help writing comparable modules for other assemblers (and for those who don't know HLA syntax, you can always use the output from HLA in MASM/FASM/Gas syntax as a guide). Cheers, Randy Hyde P.S. Evenbit, go ahead and cross-post this to the mailing list. --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |