TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

KickC is a C-compiler for 6502-based platforms creating readable assembler code

63 pointsby muterad_murilax11 months ago

5 comments

dzdt11 months ago
The 6502 is somewhat famously a hard target for the C language, and KickC does quite well at producing good results in spite of this. The C language is heavily based around pointers and stack usage. The 6502 has a minimal hardware stack: 256 bytes with no stack-relative addressing. So a "stack frame" is an alien concept that requires slow workarounds to emulate. And the 6502 only has pointers in the form of words stored in the first 256 bytes of RAM ("zero page") and also requires the use of one of the three registers to dereference.
评论 #40627193 未加载
评论 #40632358 未加载
ruk_booze11 months ago
Heh, the repo comes with the cruncher plugins I once hacked up for Kick Assembler. Cool!<p><a href="https:&#x2F;&#x2F;gitlab.com&#x2F;camelot&#x2F;kickc&#x2F;-&#x2F;tree&#x2F;master&#x2F;repo&#x2F;se&#x2F;triad&#x2F;kickass&#x2F;kickass-cruncher-plugins?ref_type=heads" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;camelot&#x2F;kickc&#x2F;-&#x2F;tree&#x2F;master&#x2F;repo&#x2F;se&#x2F;triad...</a>
NonEUCitizen11 months ago
The README says:<p>&quot;KickC is currently in beta, and at times crash or creates ASM code that does not work properly.&quot;
评论 #40625676 未加载
评论 #40624844 未加载
pjmlp11 months ago
Given the 6502 limitations, performance with good comments is much more relevant.<p>Otherwise, kudos for the effort.
ok12345611 months ago
Is there a comparison against cc65?
评论 #40626782 未加载
评论 #40628419 未加载