27 January 2020, 13:41 | #1 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
|
VBCC ARM backend possible?
Hi,
What exactly would be needed to make VBCC process C code in a way so vasm in turn can output ARM assembly code? In other words, what is needed to make an ARM backend for VBCC? |
27 January 2020, 14:31 | #2 | |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,157
|
Quote:
VBCC has a really neat backend interface, and it's well documented too - see http://www.ibaug.de/vbcc/doc/vbcc_13.html If you're interested in creating a new backend, start by reading the generic RISC backend, understand what it's doing, then probably the best path is to copy it and adapt it gradually to the target instruction set. It'd be worth checking with phx and Volker Barthelmann first, though, to make sure no-one's already working on such a thing. |
|
27 January 2020, 21:25 | #3 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
|
Thanks. Seeing the emerging use of ARM coprocessors in some cards already on the market (zz9000) and upcoming cards (warp) it might be something worthwhile to look at.
|
08 November 2020, 21:02 | #4 |
Registered User
Join Date: Nov 2020
Location: Germany
Posts: 4
|
Already possible
> type t:a.c main() { return 42; } > bin/vbccarm t:a.c vbcc V0.9h pre (c) in 1995-2020 by Volker Barthelmann vbcc code-generator for ARM V0.0 (c) in 2006 by Frank Wille > type t:a.asm .file "t:a.c" .text .global _main _main: mov r0,#42 l1: mov pc,lr .type _main,@function .size _main,.-_main |
07 January 2021, 00:40 | #5 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
|
I missed this post. Are those binaries on the vbcc site?
|
07 January 2021, 09:56 | #6 |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,157
|
The experimental ARM code is in the source snapshot on Volker Barthelmann's site: http://www.compilers.de/vbcc.html - but I believe it was only preliminary, it's not yet in a useful state. I asked him about it a few weeks ago and he said that because ARM is so well supported elsewhere it's not a very interesting target for VBCC, which makes sense. |
07 January 2021, 16:02 | #7 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
|
Ah, bummer. I like to develop on Amiga itself. Call me masochistic. But it's a reason to turn the machine on :-)
|
07 January 2021, 17:02 | #8 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,537
|
Oh, the year is 2006. This must have been the time after I finished my first ARM backend for vasm. I thought I might try a vbcc-backend for ARM as well ... but failed (it was my first and only attempt for a vbcc-backend).
This doesn't mean it is difficult. RISC-backends are usually on the easier side. Somebody with the experience of robinson5, who already wrote a working vbcc-backend, could certainly do it. Or try it yourself, and we would help you! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBCC and ARM | Hedeon | Coders. C/C++ | 2 | 30 December 2019 00:59 |
Amiga on ARM | chanunnaki | Amiga scene | 14 | 09 April 2019 15:08 |
UAE4ARM, actually for ARM? | Enverex | support.OtherUAE | 3 | 08 June 2016 11:58 |
IPF and ARM | ascp | project.SPS (was CAPS) | 24 | 14 October 2015 19:19 |
slirp network emulation backend | Toni Wilen | support.WinUAE | 27 | 28 February 2014 13:48 |
|
|