HLA suggestions
From: T.M. Sommers (tms2_at_mail.ptd.net)
Date: 10/29/03
- Next message: Randall Hyde: "Re: The War On HLA"
- Previous message: T.M. Sommers: "Re: HLA v1.59 is now Available on Webster"
- Next in thread: Randall Hyde: "Re: HLA suggestions"
- Reply: Randall Hyde: "Re: HLA suggestions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Oct 2003 03:46:51 GMT
I have a couple of suggestions about the directory structure of the
HLA source, plus a couple of questions.
1) Currently, to build HLA from scratch, one needs to get the compiler
source, the library source, and a binary distribution (for the library
include files). Each of these distributions puts its files in a
different place. It would make building from scratch easier if:
*) The library include files were included with the library source.
*) The library source (including the include files) and the compiler
source were both put in subdirectories of a common directory, such as:
hla
hlasrc
hlalibsrc
include
*) An additional advantage of this setup (or something like it) would
be that the entire project could be built from a single makefile in
the top directory.
2) Porting the compiler seems to be fairly quick and easy, but the
compiler cannot build executables without the HLA library also being
ported, because it automatically puts some code in every program that
uses the library. And that means, among other things, that the
compiler cannot really be tested until the library is ported. How
about either:
*) Putting the library code used by the automatically-inserted code
into a separate library. Being much smaller, this library should be
easier, or at least quicker, to port, so that one could have a working
compiler while working on the rest of the library.
Or,
*) Adding a flag to HLA to omit the automatically-inserted code.
I prefer the second alternative, as it should be simpler, and as it
might be useful in other situations than porting. The first
alternative really only benefits porters, I think.
3) Now the questions: What do you think of having HLA add debugging
information? I'm not sure how hard that would be, espcially for
Windows, but it would have obvious advantages.
Also, I was thinking it might be useful to have an HLA analog to
mkdep, to create dependencies for use in makefiles. Adding an option
to the compiler, similar to cc -M, would be one way to do this. What
do you think? It should also be possible to do with an entirely
separate program, and that might actually be easier.
- Next message: Randall Hyde: "Re: The War On HLA"
- Previous message: T.M. Sommers: "Re: HLA v1.59 is now Available on Webster"
- Next in thread: Randall Hyde: "Re: HLA suggestions"
- Reply: Randall Hyde: "Re: HLA suggestions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|