Quote:
Originally Posted by 8bitsten
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
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.