Partner sites: Aminet - Amiga downloadsIntuitionBase - Amiga guidesAmigaNN - Amiga newsAmiFund - Sponsor projects

[Y]UtilityBase
Your guide to Amiga development
Not logged in
  HomeProjectsForumArticlesResourcesLinksChatAbout 
Search
Login
Username:
Password:
Register now!
Forgot your password?
Aminet - Development
Draco-src.lha (dev/lang)
peg-v0.1.4.tar.gz (dev/c)
peg-0.1.4-src.tar.gz (dev/c)
batari_Basic.lha (dev/cross)
pixman-src_aros.lha (dev/lib)
pixman_i386-aros.lha (dev/lib)
cairo-1.5.8-src_aros.lha (dev/lib)
cairo-1.5.8_i386-aros.lha (dev/lib)
vbcc_PosixLib.lha (dev/c)
IFF-RGFX.zip (dev/misc)
More...
Newest users
Tinlau
Lullaby20 (Erika)
alfkil (Alfkil Wennermark)
lole (Olle)
jeanluc72

Pending:
ZebraZeem, Mad_Dog, hhjoker, voxel, JosDuchIt, MarcB, MarBo, Sollaris, sara, species
More...
Who's Online
Online members:

salass00$10 min(s) ago
Amigaharry 34 min(s) ago

12 guests are online.

You are an Anonymous user. You can register for free by clicking here.
News sites
Amiga-News.de
Amiga.org
AmigaDev.net
AmigaNN
Amigans.net
Amigaweb.net
AmigaWorld.net
AROS-Exec
MorphOS-News.de
MorphZone
polarBoing
Tutorials
Installing the latest OS4 SDK in Cubic IDE
Writing Installer scripts for AmiUpdate
Cross Compiling for OS4 or OS3 using MS Visual Studio 2005
Installing an AmigaOS 4 cross compiler
Size does matter: Optimizing with size in mind with GCC
More...
Sources
Install SObjs with Installer
How to make clean picture datatypes
Most of the old ClassACT examples converted to OS4
AmigaAnywhere Tutorial - Part 2 Source window1.c
AmigaAnywhere Tutorial - Part 2 Source window2.c
More...
Documentations
How to write portable code for Amiga (english)
Comment écrire du code portable pour Amiga (français)
Development How to with OS3.9 SDK
The PartyPack Hack
The Amiga PDA Programming Guidelines
More...
DreamHost

Support
UtilityBase

[Valid RSS]

UtilityBase needs your help!

VBCC 0.9
by Frank Wille
Link: VBCC 0.9


Frank Wille has been released a new version of his great C compiler. VBCC is fast, highly optimizing and easy to use ISO C compiler for all "Amiga flavour" platforms and systems.
The 0.9 version includes a huge amount of fixes as well as few fresh improvements.



Rate this item
12345678910


Last poster Message


Posted: 2009-Jan-7 01:00:13
Public kudos to Frank and Volker for their work on vbcc, particularly to Frank for his help and patience with my often naive questions.


Posted: 2009-Jan-9 01:21:17
sizeof macro, or mabye it's offsetof or both, can't remember, still doesn't support nested structs.

Anyway, excellent stuff of course, big thanks to the author.


Posted: 2009-Jan-9 07:09:41
The built-in __offsetof attribute doesn't appear to, but you could always fall back on a traditional offsetof macro.

Can you use sizeof on struct members in any C implementation? I do sizeof(((struct s *)(0))->nested.mem).


Posted: 2009-Apr-18 22:31:35
Is this version already included in the Amiga OS 4.1 public SDK or not ? Thanks :-)


Posted: 2009-May-22 04:24:08
@Trev
That "traditional" macro approach doesn't work with VBCC, it just refuses to cast 0 and output an error, can't remember which...


Posted: 2009-May-22 10:45:38
@Jose

I suppose it wouldn't work if you put a 0x10000000 in place of 0, for example, then subtracted it off later?


Posted: 2009-May-30 18:00:53 · Edited by: Trev
@Jose

It worked for me when I posted it:

C:\vbcc>type nested.c
struct s {
struct {
int mem;
} nested;
};

main()
{
int memsize = sizeof(((struct s *)(0))->nested.mem);
}

C:\vbcc>vc -v -k nested.c
vc frontend for vbcc (c) in 1995-2008 by Volker Barthelmann
vbccm68k -quiet "nested.c" -o= "nested.asm" -O=1 -IC:\vbcc\targets\m68k-amigaos
\include -IC:\vbcc\NDK_3.9\Include\include_h
vasmm68k_mot -quiet -Fhunk -phxass -opt-pea -opt-clr -opt-fconst "nested.asm" -o
"nested.o"
vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -LC:\vbcc\targets\m68k-amigaos\li
b C:\vbcc\targets\m68k-amigaos\lib\startup.o "nested.o" -s -Rshort -lvc -o a.o
ut

C:\vbcc>type nested.asm
idnt "nested.c"
opt 0
opt NQLPSMR
section "CODE",code
public _main
cnop 0,4
_main
movem.l l2,-(a7)
moveq #4,d0
l1
l2 reg
l4 equ 0
rts
; stacksize=0

EDITS: Formatting...


Posted: 2009-Jun-20 13:15:33
@nube78
Is this version already included in the Amiga OS 4.1 public SDK or not ? Thanks :-)

No, the version included in the Amiga OS 4.1 public SDK is version 0.8i but it is very easy to update to the latest version.


Posted: 2009-Sep-30 14:42:00
The new OS4 SDK maintainer said he doesn't care for vbcc.

And right, __offsetof() for a member of a nested struct still doesn't work. But I didn't even know about it, when nobody reports it. Too late for 0.9a. ;)


Posted: 2009-Sep-30 21:53:18 · Edited by: matthey
@phx

Good to see you here, Frank.

phx wrote...
The new OS4 SDK maintainer said he doesn't care for vbcc.

That's narrow minded. Having more options is always better. So many people want to have the best when what is best usually is not the best for everything. Don't be discouraged. Just make vbcc better ;-). Vbcc is already better than gcc in most ways on AmigaOS 68k if you ask me. Have you seen the code that gcc generates? You can't beat the Amiga support for vbcc either :-P.

And right, __offsetof() for a member of a nested struct still doesn't work. But I didn't even know about it, when nobody reports it. Too late for 0.9a. ;)

Yes we all need to start communicating better. Bug reports are vital to development.

Is vbcc 0.9a available somewhere yet?


Posted: 2009-Oct-1 12:04:09 · Edited by: salass00
@phx

And right, __offsetof() for a member of a nested struct still doesn't work. But I didn't even know about it, when nobody reports it. Too late for 0.9a.

I would have reported it if I'd run into it but I don't use offsetof that much.

Who's the new SDK maintainer anyway? Or is that still supposed to be a secret?


Posted: 2009-Oct-1 13:57:32
Is vbcc 0.9a available somewhere yet?
Not yet. It is finished since months. A last beta-testing bug was fixed four weeks ago, but I still didn't find the time to run all test suites. 0.9a will include many important bug fixes, especially for 68k.

Who's the new SDK maintainer anyway? Or is that still supposed to be a secret?
I do not accuse a person in public, although he is the reason I gave up my OS4 developer status a few weeks ago.


Posted: 2009-Oct-2 00:00:28
@salass00
Who's the new SDK maintainer anyway? Or is that still supposed to be a secret?
There isn't one. The SDK is prepared by whomever happens to get the job that release.


Posted: 2009-Oct-2 00:11:07
@phx
I do not accuse a person in public, although he is the reason I gave up my OS4 developer status a few weeks ago.
Wouldn't it have been better to try and resolve the matter privately before taking such drastic action?

:: Your comment
Bold Style  Italic Style  Underlined Style  Image Link  Insert URL  Email Link  Quote  C/C++ Source  Disable *What`s that?


Before posting non-english message, check your browser`s encoding!
» Name » Password

UtilityBase is a site focused on development for Amiga systems,
spanning over all different Amiga clones, that be AmigaOS 3.x, 4.x, MorphOS, AROS or AmigaDE/Anywhere.
News syndication: RSS
Contact address: mail@utilitybase com