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: 85
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: 440
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: 85
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: 85
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  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amiga Assembly extension for Visual Studio Code prb28 Coders. Asm / Hardware 147 16 November 2019 21:52
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 18:36.


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