-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra option ARRLEN in Ofront.par #20
Labels
Comments
• fcd612d |
Oleg-N-Cher
added a commit
that referenced
this issue
Feb 28, 2018
Oleg-N-Cher
added a commit
that referenced
this issue
Feb 28, 2018
Oleg-N-Cher
added a commit
that referenced
this issue
Feb 28, 2018
Oleg-N-Cher
added a commit
that referenced
this issue
Mar 1, 2018
Oleg-N-Cher
added a commit
that referenced
this issue
Sep 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've added to Ofront+ the following feature.
Size of an array length had always the type LONGINT. It was good for LONGINT 32 bits, but LONGINT 64 bits seems too many for this usage.
So I added the ability to specify the type of array length in Ofront.par
ARRLEN 2
or
ARRLEN 4
or
ARRLEN 8
It is also very useful for old platforms where are restrictions on the size of the segment, etc. For example, now we can limit a string size to 127 bytes (for Z80), or to 32767 bytes (for DOS). There is no necessity to use LONGINT, even if LONGINT is 32 bits, when INTEGER or SHORTINT is enough.
The option ARRLEN is not necessary. If it's not specified in Ofront.par, the LONGINT type will be used as before.
P.S.
Unfortunately, there are restrictions on the placement position of the option ARRLEN in the file Ofront.par. The sequence of these options was firmly fixed, and I did not change the order of work with it. Therefore the option ARRLEN should be located between RECORD and ENDIAN.
The text was updated successfully, but these errors were encountered: