6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed May 15, 2024 7:56 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Nov 20, 2022 12:26 am 
Offline

Joined: Mon May 01, 2017 7:13 am
Posts: 82
The compiler gods have added the llvm-mos C compiler to the Compiler Explorer at godbolt.org.

This means that you can experiment with llvm-mos 6502 codegen without installing anything locally.

Here's an example of llvm-mos running a compile-time calculation in C:

https://godbolt.org/z/5xer5nYsE

And here's an example of code running on an emulated NES (click on the popup in the lower right corner to watch the emulation run):

https://godbolt.org/z/MxaoKvEfs

More info about llvm-mos is available at https://www.llvm-mos.org.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 21, 2022 5:11 am 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 269
Location: South Africa
Oh wow, that's awesome! And that's going to make my life so much easier :D

Thanks for pointing it out


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron