Re: HLA macro question?
- From: "randyhyde@xxxxxxxxxxxxx" <spamtrap@xxxxxxxxxx>
- Date: Fri, 26 Aug 2005 21:39:03 +0000 (UTC)
spamtrap@xxxxxxxxxx wrote:
> In "Linux Device Drivers in Assembly" you have this #macro defined
> inside a namespace. If I try to compile the namespace as a separate
> compilation unit, the HLA compiler barfs - it wants the namespace
> inside a program declaration. BUT I see the include files (e.g.,
> stdout.hhf, math.hhf, etc.) are defined as stand alone namespaces.
> What gives?
>
> ---John
To be honest, I don't know what gives. I've not worked on that stuff
for a couple of years now. I stopped working on the Linux Drivers stuff
(along with most other assembly documentation) because I don't want to
do any more assembly books until I get HLA v2.0 done (so I don't have
to go back and revise them all). The other problem was that Linux 2.6
was coming along and the equates were going to have to change for 2.6
(from 2.4, on which the code is based). My guess is that HLA v2.0 will
be ready in time for Linux 2.8 :-), so I'll probably return back to the
Linux Device drivers stuff then.
As for namespaces, one has to be very careful about macros declared and
invoked inside and outside of a namespace. Sometimes you need to attach
the @global: prefix to the symbols, sometimes not. Invoking macros
inside and outside a namespace exacerbates this problem. Indeed, the
design of the way namespaces work is one of the biggest changes that
will take place in HLA v2.0.
Cheers,
Randy Hyde
.
- Follow-Ups:
- Re: HLA macro question?
- From: spamtrap
- Re: HLA macro question?
- From: Alex Buell
- Re: HLA macro question?
- References:
- HLA macro question?
- From: spamtrap
- Re: HLA macro question?
- From: randyhyde@xxxxxxxxxxxxx
- Re: HLA macro question?
- From: spamtrap
- Re: HLA macro question?
- From: randyhyde@xxxxxxxxxxxxx
- Re: HLA macro question?
- From: spamtrap
- HLA macro question?
- Prev by Date: Re: HLA macro question?
- Next by Date: Using linux's brk for dynamic memory allocation
- Previous by thread: Re: HLA macro question?
- Next by thread: Re: HLA macro question?
- Index(es):
Relevant Pages
|
|