using_20the_20built-in_20program_20cruncher
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
using_20the_20built-in_20program_20cruncher [2018/03/31 13:19] – external edit 127.0.0.1 | using_20the_20built-in_20program_20cruncher [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
* Abbreviate names | * Abbreviate names | ||
\\ The only way to apply these options to your code is to compile the program, however once the program is compiled there is no simple way to load the crunched program from the executable back into the editor.\\ \\ Using the following technique it is possible to use the compiler to crunch your programs and save them in a way that they can be loaded back into the editor. This is achieved by making the compiled program save a copy of itself. Note that certain crunch options and combinations thereof can render programs uneditable. Always keep a backup of your original source code.\\ \\ To crunch a program the copy and paste the following two lines at the start of your program: | \\ The only way to apply these options to your code is to compile the program, however once the program is compiled there is no simple way to load the crunched program from the executable back into the editor.\\ \\ Using the following technique it is possible to use the compiler to crunch your programs and save them in a way that they can be loaded back into the editor. This is achieved by making the compiled program save a copy of itself. Note that certain crunch options and combinations thereof can render programs uneditable. Always keep a backup of your original source code.\\ \\ To crunch a program the copy and paste the following two lines at the start of your program: | ||
+ | <code bb4w> | ||
OSCLI" | OSCLI" | ||
DEF FNVif93Ux=@dir$+" | DEF FNVif93Ux=@dir$+" | ||
+ | </ | ||
Once these lines have been added at the very start of the program choose the compile option from the tool bar or the Utilities menu of the BBC BASIC for Windows editor. Set the crunch options you want to be applied to your code and compile the program.\\ \\ Now run the compiled executable to recover the crunched version of the program.\\ \\ By default the crunched program will be saved as Crunched.bbc in the same directory as the compiled executable. To change the name or location of the saved file change **@dir$+" | Once these lines have been added at the very start of the program choose the compile option from the tool bar or the Utilities menu of the BBC BASIC for Windows editor. Set the crunch options you want to be applied to your code and compile the program.\\ \\ Now run the compiled executable to recover the crunched version of the program.\\ \\ By default the crunched program will be saved as Crunched.bbc in the same directory as the compiled executable. To change the name or location of the saved file change **@dir$+" |
using_20the_20built-in_20program_20cruncher.1522502390.txt.gz · Last modified: 2024/01/05 00:16 (external edit)