just looking to trim stuff from programs that may not have the need for the files and wondered if the modedefs.bas is required for pbp3 still ?
just looking to trim stuff from programs that may not have the need for the files and wondered if the modedefs.bas is required for pbp3 still ?
I'm still on 2.60C and haven't used it.
Robert
EDIT: When I use a segment of code that uses it, I just copy the specific variables in my program.
Modedefs.bas is just a file full of alias s and is not required at all. You could write the particular alias or just learn which mode to use, or look it up.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
i have included it for shiftin/out and some serial stuff , adding the alisis can be done in the program , but by including it does the same , but if pbp3 has these built in then i can drop the alias lists
From the manual for PBP3
which tells us that they are not included in PBP3. As Archangel said in #3 use the mode numbers instead of the mode alias to save space.The Mode names (e.g. MSBPRE) are defined in the file MODEDEFS.BAS. To use them, add the line:
Include "modedefs.bas"
to the top of the PICBASIC PRO program.
Steve Earl www.datageo.co.uk
I am not certain using the mode numbers will change the size of the compiled code by much or any, it will reduce the source code size. I simply have not compared them.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Hi,
The file does not contain any runtime code what so ever. Including it does in no way change the size of generated .hex file so there's nothing to be gained by not including it if you're aiming to reduce the footprint of the actual .hex
/Henrik.
Bookmarks