English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 13 November 2019, 11:50   #141
Antiriad_UK
Registered User

 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 116
Quote:
Originally Posted by hooverphonique View Post
Ok, I was wrong. I took the vasm output as gospel:

But it turns out that my output executable is 362kB due to the vasm "-linedebug" option. I guess I need to find a way to disable debug symbol generation for data sections, because it bloats the executable and is probably not really useful.
I noticed the slow debug loading when my exes were getting past a certain size. Also they use more memory to load so I have to add more fast ram than usual even if I'm targeting an A500 512KB. As a workaround I've configured my "debug" settings to use the config "A4000/040" model and that loads instantly. Not ideal but as I want my stuff to work on that config as well anyway and I only used debug to "fix" problems it works ok.
Antiriad_UK is online now  
Old 13 November 2019, 14:19   #142
hooverphonique
ex. demoscener "Bigmama"

 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 988
Quote:
Originally Posted by Antiriad_UK View Post
I noticed the slow debug loading when my exes were getting past a certain size. Also they use more memory to load so I have to add more fast ram than usual even if I'm targeting an A500 512KB. As a workaround I've configured my "debug" settings to use the config "A4000/040" model and that loads instantly. Not ideal but as I want my stuff to work on that config as well anyway and I only used debug to "fix" problems it works ok.
So you managed to get the "run" launch config to trigger a non-debug build? I don't see how the launch config is referencing a build config in order to get different builds for different launch configs...

Last edited by hooverphonique; 13 November 2019 at 16:34.
hooverphonique is offline  
Old 13 November 2019, 14:24   #143
Antiriad_UK
Registered User

 
Join Date: Mar 2019
Location: Birmingham, UK
Posts: 116
Yeah, I don't tend to use the non-debug one as my build script auto runs a WinUAE instance which I much prefer, but this seems to work for me:
Code:
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "fs-uae-run",
            "request": "launch",
            "name": "WINDOWS Run",
            "buildWorkspace": false,
            "emulator": "${workspaceFolder}\\..\\..\\ToolChain\\VSCodeExt-bin\\fs-uae.exe",
	    "emulatorWorkingDir": "${workspaceFolder}\\..\\..\\ToolChain\\VSCodeExt-bin",
            "options": [
                "--hard_drive_0=${workspaceFolder}\\vscode-hd0",
                "--joystick_port_1=none",
                "--amiga_model=A500",
                "--chip_memory=512",
                "--slow_memory=512",
                "--kickstarts-dir=${workspaceFolder}\\..\\..\\WinUAE\\Roms"
            ]
        },
        {
            "type": "fs-uae",
            "request": "launch",
            "name": "WINDOWS Debug",
            "stopOnEntry": true,
            "serverName": "localhost",
            "serverPort": 6860,
            "trace": false,
            "startEmulator": true,
            "buildWorkspace": false,
            "emulator": "${workspaceFolder}\\..\\..\\ToolChain\\VSCodeExt-bin\\fs-uae.exe",
	    "emulatorWorkingDir": "${workspaceFolder}\\..\\..\\ToolChain\\VSCodeExt-bin",
            "program": "${workspaceFolder}\\vscode-hd0\\demo.exe",
            "options": [
                "--hard_drive_0=${workspaceFolder}\\vscode-hd0",
                "--joystick_port_1=none",
		"--amiga_model=A4000/040",
                "--kickstarts-dir=${workspaceFolder}\\..\\..\\WinUAE\\Roms",
                "--remote_debugger=200",
                "--use_remote_debugger=true",
                "--automatic_input_grab=0"
            ]
        },
    ]
}
The A4000 config seems to run ok, but always crashes after the program exits (Sometimes a message about UAE Debugger crash) but that's another issue for another time
Antiriad_UK is online now  
Old 13 November 2019, 22:57   #144
Spec-Chum
Registered User

 
Join Date: Dec 2016
Location: England
Posts: 85
Quote:
Originally Posted by prb28 View Post
Can you please add a feature request on Github?
All the docs are in markdown files, it should be easily done.
Of course, sorry.

Done.
Spec-Chum is online now  
Old 13 November 2019, 23:51   #145
prb28
Registered User

 
Join Date: May 2018
Location: France
Posts: 112
Quote:
Originally Posted by Spec-Chum View Post
Of course, sorry.

Done.
Thanks !
prb28 is offline  
Old 14 November 2019, 00:06   #146
prb28
Registered User

 
Join Date: May 2018
Location: France
Posts: 112
Quote:
Originally Posted by hooverphonique View Post
So you managed to get the "run" launch config to trigger a non-debug build? I don't see how the launch config is referencing a build config in order to get different builds for different launch configs...
Maybe with a dedicated makefile config for run and another for debug.
prb28 is offline  
Old Yesterday, 17:32   #147
prb28
Registered User

 
Join Date: May 2018
Location: France
Posts: 112
Preview for vasm error message and addresses in hover: https://github.com/prb28/vscode-amig....19.0.vsix.zip
prb28 is offline  
Old Yesterday, 21:52   #148
Spec-Chum
Registered User

 
Join Date: Dec 2016
Location: England
Posts: 85
Quote:
Originally Posted by prb28 View Post
Preview for vasm error message and addresses in hover: https://github.com/prb28/vscode-amig....19.0.vsix.zip
Looks good, thanks for that!
Spec-Chum is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly code to test for assign (2.0+) jotd Coders. System 2 28 December 2017 00:16
very basic C/ASM/Visual Studio hand holding Sephnroth Coders. C/C++ 2 08 March 2016 21:15
Amiga Audio/Visual KhneFr request.Other 6 03 January 2015 11:25
Profiling WinUAE with Visual Studio 2013 mark_k support.WinUAE 3 14 January 2014 21:26
amiga visual editor thinlega request.Apps 1 22 January 2003 16:48

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.08984 seconds with 15 queries