Re: Global variables and HP-GCC
- From: "Claudio Lapilli" <pleasedontspam@xxxxxxx>
- Date: 31 Aug 2006 09:23:41 -0700
John H Meyers wrote:
On Wed, 30 Aug 2006 19:33:45 -0500, Claudio Lapilli wrote:
Is there any way of accessing global variables with HP-GCC?
Yes, look for the sat_dir... functions. You can traverse subdirectories
and read variables. However, this is read-only, you cannot write to
these variables (at least for now, we'll try to add this feature
in the future).
Could you implement a "server" -- i.e. an RPL program
which would accept any commands to be executed in RPL mode
(using a new or saved stack, say),
then return to where you suspended HPGCC mode?
That would be:
1) difficult to implement
2) against the whole idea of hpgcc (running native code).
Let me explain a little more the second point: If you want to run
saturn-emulated-interpreted commands, then don't use hpgcc. The whole
idea of hpgcc is to write native ARM code, therefore it seems more
logical to write native routines to manipulate objects in ARM rather
than going back to the emulated saturn.
If you had that, then you could have HPGCC programs
perform any desired RPL commands, and would not need
to add individual specific features to HPGCC.
As it is now, hpgcc can manipulate saturn objects pretty well (provided
you have the knowledge needed to do it, of course). What hpgcc can't do
is to use the CAS, but if you need the CAS, then use it from the
calculator, you don't really need hpgcc for that.
Storing objects in userob is an interesting feature that may be added
in a future release, but don't expect any major improvement in the
interaction RPL <-> C.
Claudio
.
- Follow-Ups:
- Re: Global variables and HP-GCC
- From: John H Meyers
- Re: Global variables and HP-GCC
- References:
- Global variables and HP-GCC
- From: am
- Re: Global variables and HP-GCC
- From: Claudio Lapilli
- Re: Global variables and HP-GCC
- From: John H Meyers
- Global variables and HP-GCC
- Prev by Date: Re: Global variables and HP-GCC
- Next by Date: Re: HPGCC and Hiworld
- Previous by thread: Re: Global variables and HP-GCC
- Next by thread: Re: Global variables and HP-GCC
- Index(es):
Relevant Pages
|