View Single Post
Old 20 August 2022, 22:26   #11
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by 8bitsten View Post
I thought that for 6502 nobody uses C
C was already used quite a lot in the past. Not for the VIC-20, of course, but I remember Lazycow did most games in C with a small assembler core.
Volker's new 6502 backend for vbcc generates really good code, supports many 6502-targets, including special features like bank switching.

Quote:
Originally Posted by 8bitsten View Post
If I remove the
-lamiga
parameter from he
vc
call from the example makefile from the article (see GitHub) the linker reports the following error:
To be able to use assembler inlines for the OS-calls you have to include
<proto/exec.h>
instead of
<clib/exec_protos.h>
. This is true for most (all?) AmigaOS compilers. The headers under
proto
make sure that your compiler's optimal OS-call mechanism is being used.

There are still reasons to link with
amiga.lib
, though. Support functions like
DoMethod
,
CallHook
,
NewList
,
BeginIO
, etc., do not exist in any AmigaOS shared library.
phx is offline  
 
Page generated in 0.04886 seconds with 11 queries