Hi Kiste,

On 10/10/14 23:39, Oliver Seitz wrote:

By the way, does anyone know why the shared memory is not used?Or is
it used for internal purposes?

The compiler writer (Kyle York) is probably the only qualified person to answer this question.

If it was not used, it could be simply
regarded as a bigger page 0 or the like.

To answer this I must correct an earlier statement of mine.
I wrote:
The current version of JalV2 doesn't use 'shared' memory for
> variables. Therefore the device files hide it for the compiler.

In general the device files do *not* hide shared memory for the compiler, but the compiler chooses not to use it for variables of user programs (it only uses some shared memory for 'internal' purposes).

There are some exceptional cases - mainly for the midrange PICs - where the device files 'manipulate' the compiler by specifying shared memory as non-shared and non-shared memory as shared! These special cases are described in general terms in devicefiles.html, but for specific PICs you should compare the devicefile with the datasheet (or look in the dev2jal Rexx script).

We could specify in the device files shared memory as non-shared, but that gives a gain of only a few bytes (max 14 bytes for the midrange and max 126 for the 18Fs, frequently less). But another option - probably more generic - would be for the compiler to ignore the word 'shared' in 'pragma shared 0x.....' and use that memory as non-shared!

Kyle reported that he has revision of memory allocation high on his todo list, so I consider intermediate temporary solutions in the device files with only limited effect as a waste of time. I would not recommend it, but for specific memory constraint situations a user could modify the device file himself!

Regards, Rob.


--
R. Hamerling, Netherlands --- http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to