English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. C/C++ (https://eab.abime.net/forumdisplay.php?f=118)
-   -   Writing device drivers in VBCC? (https://eab.abime.net/showthread.php?t=90229)

plasmab 14 January 2018 11:09

Writing device drivers in VBCC?
 
Hey folks,

Are there any examples of writing devices using VBCC. I have seen some GCC stuff and i'm happy with that for now but i prefer using vbcc for my toolchain because its far easier to get running (and will run on low end classic machines).

Anyways thanks for any help in this area.

phx 14 January 2018 15:25

1 Attachment(s)
I don't know if anybody has already written a device driver with vbcc, but it should be straightforward as vbcc is quite compatible to standard Amiga compilers, like SAS/C.

A device is not so different from a library. It's probably easiest to write the resident structure and the function table in assembler.

Attached you find an example library, which I wrote about 14 years ago in pure C with vbcc. Might be a good starting point.

nogginthenog 14 January 2018 15:35

There's this on Aminet too:
http://aminet.net/package/dev/src/vbcc-librarytemplate

Template for implementing an Amiga shared library in VBCC

plasmab 14 January 2018 16:17

thanks for the pointers. I havent found many C only drivers. Just the mntsd one and thats fully gcc. vbcc got huffy with it. will report my results.


All times are GMT +2. The time now is 05:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.04177 seconds with 11 queries