English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

Thread Tools
Old 14 January 2018, 12:09   #1
plasmab's Avatar
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.
plasmab is offline  
Old 14 January 2018, 16:25   #2

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,293
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.
Attached Files
File Type: lha examplelib.lha (3.4 KB, 34 views)
phx is offline  
Old 14 January 2018, 16:35   #3

Join Date: Feb 2012
Location: London
Posts: 708
There's this on Aminet too:

Template for implementing an Amiga shared library in VBCC
nogginthenog is offline  
Old 14 January 2018, 17:17   #4
plasmab's Avatar
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.
plasmab is offline  

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 22:18
vbcc 0.9d phx News 43 13 July 2015 20:41
Using timer.device in C (VBCC) DBAlex Coders. General 2 28 June 2011 23:10
K13 asm example of gameport.device and keyboard.device redblade Coders. General 29 20 January 2011 19:32
uaehf.device and HDToolbox: Error 224 reading device description Ebster support.WinUAE 3 16 September 2008 10:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 15:03.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06414 seconds with 16 queries