English Amiga Board


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

 
 
Thread Tools
Old 10 February 2018, 19:10   #761
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 20,439
Right, only function calls can use PC-relative jumps + extra absolute jump if needed. I would have been quite difficult to do with LEAs

Very tiny observation:

Long word array offset calculation use 2x add.l dn,dn. I think -Os should use shorter lsl.l #2,d0.
Toni Wilen is online now  
AdSense AdSense  
Old 11 February 2018, 00:57   #762
bebbo
Registered User

 
Join Date: Jun 2016
Location: Hamburg/Germany
Posts: 227
Quote:
Originally Posted by Toni Wilen View Post
Right, only function calls can use PC-relative jumps + extra absolute jump if needed. I would have been quite difficult to do with LEAs
you can use -mpcrel on some source files and if ordered correctly it will work.

Quote:
Originally Posted by Toni Wilen View Post
Very tiny observation:

Long word array offset calculation use 2x add.l dn,dn. I think -Os should use shorter lsl.l #2,d0.
I think, I can live with add add.
bebbo is offline  
Old 12 February 2018, 22:52   #763
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 921
bebbo, dont want to derail your thread any further, just wanted to ask if you could point me to where, if you hat manually enable relative addressing in gcc. like when specifying an offset to address register content here:
bset.b #0,4(a1)
thats what aros gcc seems not to understand.
my thread is here:
http://eab.abime.net/showthread.php?...54#post1219154
wawa is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New GCC based dev toolchain for AmigaOS 3.x cla Coders. Releases 8 24 December 2017 11:18
Issue with photon/xxxx WinUAE Toolchain arpz Coders. Asm / Hardware 2 26 September 2015 23:33
New 68k gcc toolchain arti Coders. C/C++ 17 31 July 2015 04:59
Hannibal's WinUAE Demo Toolchain 5 Bobic Amiga scene 1 23 July 2015 22:04
From gcc to vbcc. Cowcat Coders. General 9 06 June 2014 15:45

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 21:52.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Page generated in 0.11667 seconds with 14 queries