One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
303
stars
38
forks
source link
New targets (Debug, Release, Final, Shrinkler). [updated to 1.6.8] #200
Same as Final but shrinkles the executable using the new option amiga.shrinkler.options in the Settings page.
The executable launched in the emulator is the shrinkled one (which is renamed to the name of the program).
Symbol stripping still has to be done using the -s parameter when calling elf2hunk.
Shrinkling is done by an external file mkfinal.bat.
Potential improvements:
Splitting Shrinkled into two targets, one for profiling (which includes DWARF information) and one for publishing (not including DWARF information + calling elf2hunk with parameter -s).
PS: This is my last Pull Request for now :) (It's the only actual difference between the extension and my fork). Maybe is too specific and out of the scope of the template, however it is worth the try!
This PR provides replaces built-in targets
AROS
,A500
,A1200
andA4000
with more specific targets:Release
DEBUG
macro.-gdwarf-3 -Ofast -DDEBUG
.-dwarf=3 -DDEBUG
.Debug
DEBUG
macro.-gdwarf-3 -DDEBUG
.-dwarf=3 -DDEBUG
.Final
NDEBUG
instead ofDEBUG
to provide some sort of stripping at the source code level.-gdwarf-3 -Ofast -DNDEBUG
.-dwarf=3 -DNDEBUG
.Shrinkled
amiga.shrinkler.options
in the Settings page.-s
parameter when callingelf2hunk
.mkfinal.bat
.Potential improvements:
elf2hunk
with parameter-s
).Related to: https://github.com/BartmanAbyss/vscode-amiga-debug/issues/52 Replacement for https://github.com/BartmanAbyss/vscode-amiga-debug/pull/127 (which became outdated).
PS: This is my last Pull Request for now :) (It's the only actual difference between the extension and my fork). Maybe is too specific and out of the scope of the template, however it is worth the try!