TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

63 点作者 muterad_murilax12 个月前

5 条评论

dzdt12 个月前
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_booze12 个月前
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>
NonEUCitizen12 个月前
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 未加载
pjmlp12 个月前
Given the 6502 limitations, performance with good comments is much more relevant.<p>Otherwise, kudos for the effort.
ok12345612 个月前
Is there a comparison against cc65?
评论 #40626782 未加载
评论 #40628419 未加载