English Amiga Board


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

 
 
Thread Tools
Old 14 January 2018, 12:09   #1
plasmab
Registered User

plasmab's Avatar
 
Join Date: Sep 2016
Location: Glasgow
Posts: 1,724
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 online now  
AdSense AdSense  
Old 14 January 2018, 16:25   #2
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,039
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, 9 views)
phx is offline  
Old 14 January 2018, 16:35   #3
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 507
There's this on Aminet too:
http://aminet.net/package/dev/src/vbcc-librarytemplate

Template for implementing an Amiga shared library in VBCC
nogginthenog is offline  
Old 14 January 2018, 17:17   #4
plasmab
Registered User

plasmab's Avatar
 
Join Date: Sep 2016
Location: Glasgow
Posts: 1,724
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 online now  
AdSense AdSense  
 


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 23:23.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Page generated in 0.13574 seconds with 14 queries