English Amiga Board


Go Back   English Amiga Board > Main > Amiga scene

 
 
Thread Tools
Old 18 February 2017, 04:49   #21
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
looks like someone is working on clang/llvm for aros, there seems to be some preparational commits, but i havent seen it commited itself. propbably would need further patches though to produce amiga-m68k code.
wawa is offline  
AdSense AdSense  
Old 18 February 2017, 05:01   #22
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 904
Send a message via Yahoo to Samurai_Crow
By patches I assume you mean an entire backend. A backend in LLVM is a third of the compiler.
Samurai_Crow is offline  
Old 18 February 2017, 15:46   #23
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
im completely unfamiliar with the subject matter. i simply noticed someone made some preparatory commits to the aros repo (mschulz?) which might indicate that he may experiment with llvm locally.

i understand that you have been working on a 68k backend but it has never become actually usable, or simply none used it. given that aros would receive llvm backend (for contemporary platforms) perhaps some adoptation for amiga-m68k backend might be made, based on your experience. even if it seems unlikely. if it would practically mean to write a backend from the scratch, then its plain impossible of course.
wawa is offline  
Old 18 February 2017, 16:39   #24
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 904
Send a message via Yahoo to Samurai_Crow
It's not impossible but the backend in my repo is incomplete. The work on AROS is for Mac hosted and uses an x86.
Samurai_Crow is offline  
Old 18 February 2017, 18:55   #25
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
Quote:
Originally Posted by Samurai_Crow View Post
It's not impossible but the backend in my repo is incomplete. The work on AROS is for Mac hosted and uses an x86.
it looks like schulz uses a mac as well, he commited some patch(es) for osx hosted, but it doesnt make so much difference to linux hosted i guess, the host is anyway x86 no matter what i guess. so maybe the effort could be bundled if you dag up your sources and teamed up with him.

just kidding
wawa is offline  
Old 20 February 2017, 23:30   #26
ardi
 
Posts: n/a
Quote:
Originally Posted by Samurai_Crow View Post
Backend code for LLVM requires knowledge of how to implement the IR in native code. From there, you would have to implement the peephole optimization yourself.

The reason that the backend in my GitHub repo has languished is that it is based on a very old version of LLVM and merging it with current code would be an ordeal in itself.
Do you remember what clang version it was for? BTW, is that hard to maintain backends across LLVM versions? I thought the LLVM design was done with ease of maintenance in mind...

Also, do you have any list of what things were done and what things were pending?
 
Old 21 February 2017, 01:01   #27
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 904
Send a message via Yahoo to Samurai_Crow
Quote:
Originally Posted by ardi View Post
Do you remember what clang version it was for? BTW, is that hard to maintain backends across LLVM versions? I thought the LLVM design was done with ease of maintenance in mind...

Also, do you have any list of what things were done and what things were pending?
It's version 3.2. GetElementPtr still not implemented and C runtime library needs to borrow from GCC.

GetElementPtr is the equivalent of all the non-register addressing modes but can probably be implemented as LEA during the earlier stages and just merged later when the needed addressing mode is available and the pointer is used once.
Samurai_Crow is offline  
Old 21 February 2017, 22:56   #28
ardi
 
Posts: n/a
Quote:
Originally Posted by Samurai_Crow View Post
Backend code for LLVM requires knowledge of how to implement the IR in native code. From there, you would have to implement the peephole optimization yourself.

The reason that the backend in my GitHub repo has languished is that it is based on a very old version of LLVM and merging it with current code would be an ordeal in itself.
I just saw there's another fork, with one commit from last September. The commit adds new code, but I'm not sure if it can be considered more complete than yours, or the opposite: https://github.com/mntmn/llvm-m68k
 
Old 22 February 2017, 02:41   #29
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 904
Send a message via Yahoo to Samurai_Crow
I think mntmn's is ahead but I still only saw the build script was modified and the readme.txt file.
Samurai_Crow is offline  
Old 22 February 2017, 02:55   #30
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
Quote:
Originally Posted by Samurai_Crow View Post
I think mntmn's is ahead but I still only saw the build script was modified and the readme.txt file.
lukas is trying to build 68k backend? he never mentioned it publicly to my knowledege.

im sorry there isnt some place where all these projects might gather and help each other rather than being spread all over the place to almost no awareness of others.

edit: h, its for a mac, could be helpful though but only with joined forces, looks like he lost interest in favour of an amiga project.

Last edited by wawa; 22 February 2017 at 03:07.
wawa is offline  
Old 22 February 2017, 05:55   #31
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 43
Posts: 904
Send a message via Yahoo to Samurai_Crow
Quote:
Originally Posted by wawa View Post
lukas is trying to build 68k backend? he never mentioned it publicly to my knowledege.

im sorry there isnt some place where all these projects might gather and help each other rather than being spread all over the place to almost no awareness of others.

edit: h, its for a mac, could be helpful though but only with joined forces, looks like he lost interest in favour of an amiga project.
The readme.txt file indicates it is for AmigaOS 3.
Samurai_Crow 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
Where can I get the Progress.gadget from? Tony Landais request.Apps 6 16 December 2015 20:16
Work in progress. Cowcat Coders. General 7 18 February 2014 23:33
My A500+ progress so far. Mogsy Hardware pics 16 02 March 2013 10:20
My A1200 progress ck1200 Hardware mods 19 07 October 2010 19:29

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


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