6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 12:18 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Oct 27, 2020 7:45 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Over on Vince Slyngstad's website 'so much stuff' - specifically in the PDP-8 section - there's a page on the writing of a C compiler, for a subset of C. The PDP-8 is rightly described as not a great fit for C - and the same is commonly said of the 6502.

So this might be interesting to a would-be writer of a C compiler for the 6502.

In particular, there's an intermediate target for a VM, the resulting code then being peephole optimised, and then the result of that being translated to native target code.


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 29, 2020 8:52 pm 
Offline

Joined: Sun Nov 08, 2009 1:56 am
Posts: 411
Location: Minnesota
Sounds like Hendrix's version of the original Small C compiler:

https://www.amazon.com/Small-C-Compiler-2nd/dp/1558511245

I had no idea copies were going for so much!


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 29, 2020 9:15 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
teamtempest wrote:
Sounds like Hendrix's version of the original Small C compiler:

https://www.amazon.com/Small-C-Compiler-2nd/dp/1558511245

I had no idea copies were going for so much!

Just someone trying to rip people off. Heres a better link

https://www.abebooks.co.uk/servlet/BookDetailsPL?bi=30727875079&cm_sp=SEARCHREC-_-WIDGET-L-_-BDP-R&searchurl=sortby%3D17%26tn%3Dsmall%2Bc%2Bcompiler

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 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: