English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 04 November 2019, 15:20   #61
Spec-Chum
Registered User

 
Join Date: Dec 2016
Location: England
Posts: 86
Quote:
Originally Posted by deimos View Post
I've not touched anything yet, so my makefile looks like:

Code:
CCFLAGS = -g -MP -MMD -m68000 -O1 -nostdlib -Wall -Wno-pointer-sign -Wno-unused-function -Wno-volatile-register-var -Wno-discarded-qualifiers -fomit-frame-pointer -fno-tree-loop-distribution -flto -fwhole-program
I will try to change that and hopefully reproduce your problem.

EDIT:

Yes, problem confirmed with the default of:

Code:
CCFLAGS = -g -MP -MMD -m68000 -Ofast -nostdlib -Wall -Wno-pointer-sign -Wno-unused-function -Wno-volatile-register-var -Wno-discarded-qualifiers -fomit-frame-pointer -fno-tree-loop-distribution -flto -fwhole-program
The sprite doesn't move.
Thanks for confirming, can you just put volatile on the spr[1]++ cast at all?

I'm at work, so can't check
Spec-Chum is offline  
Old 04 November 2019, 15:21   #62
deimos
Registered User

 
Join Date: Jul 2018
Location: Londonish / UK
Posts: 489
And it looks like your diagnosis is correct:

Code:
((/* important */ volatile /* here */ UBYTE *)spr)[1]++;
deimos is offline  
Old 04 November 2019, 15:31   #63
Spec-Chum
Registered User

 
Join Date: Dec 2016
Location: England
Posts: 86
Quote:
Originally Posted by deimos View Post
And it looks like your diagnosis is correct:

Code:
((/* important */ volatile /* here */ UBYTE *)spr)[1]++;
Awesome, thanks for checking
Spec-Chum is offline  
Old 04 November 2019, 20:40   #64
Spec-Chum
Registered User

 
Join Date: Dec 2016
Location: England
Posts: 86
Quote:
Originally Posted by deimos View Post
And it looks like your diagnosis is correct:

Code:
((/* important */ volatile /* here */ UBYTE *)spr)[1]++;
Home now, confirmed working again with -Ofast, hooray!

Thanks again for checking, much appreciated!
Spec-Chum is offline  
Old 19 November 2019, 05:01   #65
Tom_Goblins
Registered User

 
Join Date: Dec 2018
Location: Seattle
Posts: 6
Please can you confirm if it works for c++?, I saw a comment before but It wasn't clear enough.

I am trying to find my environment to code on c++ but now I am missing a nice debugger and this could be a great solution. I have been using Bebbo's gdbserver, printf!!, tons of them XD.

Thanks!

Last edited by Tom_Goblins; 19 November 2019 at 19:04.
Tom_Goblins is offline  
Old 02 December 2019, 16:25   #66
asymetrix
Registered User

 
Join Date: Jul 2009
Location: UK
Posts: 101
I got the addon to work but could not figure out how to include standard C/C++ headers - I could not follow an Amiga C book nor a standard windows C book.
Amiga really hinders my programming experience.
asymetrix is offline  
Old 02 December 2019, 22:05   #67
deimos
Registered User

 
Join Date: Jul 2018
Location: Londonish / UK
Posts: 489
Quote:
Originally Posted by asymetrix View Post
I got the addon to work but could not figure out how to include standard C/C++ headers - I could not follow an Amiga C book nor a standard windows C book.
That's not what it's for. It's not a full C++ environment with all those libraries. It's a cut down pure Amiga environment for demo / game creators.
deimos is offline  
Old 09 December 2019, 22:54   #68
roondar
Registered User

 
Join Date: Jul 2015
Location: The Netherlands
Posts: 1,381
I've recently found this rather useful extension. It works well, but I have run into a small problem.

Debugging only seems to work once.

That is, I can debug to my hearts content, until I stop debugging. When I use the Stop Debugging command from VS Code (prior to the program itself ending), this does stop the debugger. But after that I can't get it to start again. I have to restart Visual Studio Code for it to work once more.

Does anyone here know how to fix this?
roondar is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amiga Assembly extension for Visual Studio Code prb28 Coders. Asm / Hardware 153 10 December 2019 23:18
Visual Studio Code Blitz Basic extension earok Coders. Blitz Basic 29 16 July 2019 18:59
very basic C/ASM/Visual Studio hand holding Sephnroth Coders. C/C++ 2 08 March 2016 21:15
Profiling WinUAE with Visual Studio 2013 mark_k support.WinUAE 3 14 January 2014 21:26

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 12:23.


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