English Amiga Board


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

 
 
Thread Tools
Old 14 January 2018, 11:09   #1
plasmab
Banned
 
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, 15:25   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
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, 94 views)
phx is offline  
Old 14 January 2018, 15:35   #3
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,309
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, 16:17   #4
plasmab
Banned
 
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 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

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 08:11.

Top

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