14 January 2018, 11:09 | #1 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
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. |
14 January 2018, 15:25 | #2 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,501
|
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. |
14 January 2018, 15:35 | #3 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,311
|
There's this on Aminet too:
http://aminet.net/package/dev/src/vbcc-librarytemplate Template for implementing an Amiga shared library in VBCC |
14 January 2018, 16:17 | #4 |
Banned
Join Date: Sep 2016
Location: UK
Posts: 2,917
|
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.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
vbcc V0.9e released | phx | News | 17 | 31 October 2016 21:18 |
vbcc 0.9d | phx | News | 43 | 13 July 2015 19:41 |
Using timer.device in C (VBCC) | DBAlex | Coders. General | 2 | 28 June 2011 22:10 |
K13 asm example of gameport.device and keyboard.device | redblade | Coders. General | 29 | 20 January 2011 18:32 |
uaehf.device and HDToolbox: Error 224 reading device description | Ebster | support.WinUAE | 3 | 16 September 2008 09:24 |
|
|