AROS World Exec

Development => Development (General) => Topic started by: derek2210 on April 13, 2023, 04:48:41 PM

Title: VBCC
Post by: derek2210 on April 13, 2023, 04:48:41 PM
Hi,

I have been reading about VBCC and it seems to have Amiga targets, can AROS run VBCC, and maybe natively.
Title: Re: VBCC
Post by: magorium on April 14, 2023, 03:00:47 AM
I can't think of anything why it would not be possible.

The Free Pascal compiler makes use (or actually /can/ make use) of VBCC's linker and assembler. Have you tried to compile VBCC on AROS ? (I haven't done so either though)
Title: Re: VBCC
Post by: Mazze on April 14, 2023, 05:14:15 AM
Problem is that our header files are full of GCC and AROS specific features. The compiler itself is already in contrib:

https://github.com/aros-development-team/contrib/tree/master/development/compilers/vbcc
Title: Re: VBCC
Post by: derek2210 on April 14, 2023, 07:26:32 AM
Hi,

I have not tried to compile VBCC on AROS, I was just asking if it had already been done.

I will have a look at this, as I would like a native AROS compiler, rather than Cross Compiler system.
Title: Re: VBCC
Post by: magorium on April 14, 2023, 08:21:04 AM
@Mazze: thankl you for that as I did not know (even though I do have contrib installed)

@Derek:
Are you aware that there is a native gcc compiler present for AROS. At least Icaros desktop comes with it (when you choose to install the development package) ?

In other cases/distributions you can install GCC from contrib (in case the distro does not contain/supply gcc by default)
Title: Re: VBCC
Post by: AMIGASYSTEM on April 14, 2023, 08:50:40 AM
magorium also on AROS One x86 and AROS One 68k the GCC is installed and works fine, of course during installation as you mentioned, you have to check development package !
Not only on AROS One x86 the Portable Compiler and other development software is also installed !
Title: Re: VBCC
Post by: derek2210 on April 14, 2023, 10:10:04 AM
Hi,

Thanks for the update, looks like I have not looked at the system currently installed.

I have more experience with GCC on Linux, so maybe I do not have re-invent the wheel. Back to reading the developer docs...
Title: Re: VBCC
Post by: AMIGASYSTEM on April 14, 2023, 10:25:59 AM
No need to look at the system, just write GCC in a Shell  :D
Title: Re: VBCC
Post by: magorium on April 14, 2023, 10:46:06 AM
@AMIGASYSTEM: Thank you for the (additional) information.

@Derek:
there is also a Linux compatible shell (with basic set of internal and external commands) that can be invoked/used with sh so you should be able to "feel" right at home  :)
Title: Re: VBCC
Post by: cdimauro on April 14, 2023, 11:17:37 AM
Problem is that our header files are full of GCC and AROS specific features.
I can understand using AROS features (it should compile AROS code!), but... why using specific GCC features? This means strictly biding AROS to GCC and making the life much difficult (or even impossible) for people which want to use other compilers (like CLang, for example. And also VBCC).
Title: Re: VBCC
Post by: derek2210 on August 14, 2023, 12:49:45 PM
No need to look at the system, just write GCC in a Shell  :D
Hi,

I have Aros One v2.1 installed, openjng a Shell window and typing gcc -- version

Gives:

gcc: object not found

Where is gcc installed?
Title: Re: VBCC
Post by: deadwood on August 14, 2023, 01:05:33 PM
Assuming you selected Development packages during installation (InstallAROS), it will be in Extras:Development/bin (and Extras: in most cases is Work:)
Title: Re: VBCC
Post by: AMIGASYSTEM on August 14, 2023, 03:43:10 PM
derek, after you installed "Development package" how did you start the Shell ?


SYS:System/Shell.info -> GCC not found

Menu-Wanderer-Shell -> Ok GCC is found

Amistart-Shell -> Ok GCC is found



Solution (icon type problem):

SYS:System/Shell.info -> In the ToolTypes Icons add CLI to the top.


Title: Re: VBCC
Post by: derek2210 on August 15, 2023, 03:14:34 AM
Hi,

There seems to be no Development package installed.

I checked the download image file: ArosOne-x86-v2.1-USB-Image.vhd

Which does not have the Development package in the image, however, the file: AROS One DVD v2.1.iso does have it installed.

I will install the development package from the DVD ISO image.
Title: Re: VBCC
Post by: AMIGASYSTEM on August 15, 2023, 04:26:38 AM
Thanks derek, actually the script for creating the USB image does not copy the Develpment folder, it is solved by copying from the AROS One DVD the whole Develpment folder to the root of the disk.

For the next version of AROS One I will see if I can solve the problem !
Title: Re: VBCC
Post by: derek2210 on August 15, 2023, 05:00:59 AM
Hi,

Thanks for the update, I copied the Development files from the DVD image, to the toot of my Net Book via Samba,

All works great now.

Maybe I should be writing programs in the Linux environment and cross compiling them, but I like to program on the machine I am using.
Title: Re: VBCC
Post by: miker1264 on August 15, 2023, 08:17:05 PM
Hi,

Thanks for the update, I copied the Development files from the DVD image, to the toot of my Net Book via Samba,

All works great now.

Maybe I should be writing programs in the Linux environment and cross compiling them, but I like to program on the machine I am using.

I find that if they are small programs it's actually easier to do the compiling and testing inside AROS rather than using a cross compiler on Linux.

That way you can get several iterations of testing, editing and compiling with much less file transfers from Linux.

The only drawback is the lack of a good text editor with syntax highlighting for editing inside AROS. So far I've tried Annotate but the syntax highlighting was not satisfying. It's almost like it was an afterthought with the makers of Annotate rather than the star of the show.
Title: Re: VBCC
Post by: pixie on August 16, 2023, 01:17:40 AM
Hi,

Thanks for the update, I copied the Development files from the DVD image, to the toot of my Net Book via Samba,

All works great now.

Maybe I should be writing programs in the Linux environment and cross compiling them, but I like to program on the machine I am using.

I find that if they are small programs it's actually easier to do the compiling and testing inside AROS rather than using a cross compiler on Linux.

That way you can get several iterations of testing, editing and compiling with much less file transfers from Linux.

The only drawback is the lack of a good text editor with syntax highlighting for editing inside AROS. So far I've tried Annotate but the syntax highlighting was not satisfying. It's almost like it was an afterthought with the makers of Annotate rather than the star of the show.
If you use AROS hosted wouldn't it ease the process?
Title: Re: VBCC
Post by: AMIGASYSTEM on August 16, 2023, 03:21:53 AM
I am not a developer, but I believe that using Native AROS you can verify everything on the fly without doing file passes, of course on AROS there are no qualitative and fast tools, but for what little compilation experience I had, I found it very convenient to do it directly on Native AROS.
Title: Re: VBCC
Post by: magorium on August 16, 2023, 03:32:25 AM
If you use AROS hosted wouldn't it ease the process?
I guess everyone has its own preference. But in basics you are correct.

You can edit, cross-compile on the host (and use whatever the host is able to provide, e.g. browsing, graphics/audio editing etc) and when doing that inside an AROS directory the only thing left is to actually execute that what you just compiled (and even that can be automated).

I prefer it mostly because all relevant documentation is also easier accessible for me on the host, not to mention vcs (git/svn etc).
Title: Re: VBCC
Post by: AMIGASYSTEM on August 16, 2023, 03:37:14 AM
The only drawback is the lack of a good text editor with syntax highlighting for editing inside AROS. So far I've tried Annotate but the syntax highlighting was not satisfying. It's almost like it was an afterthought with the makers of Annotate rather than the star of the show.

Miker have you tried EdiSyn, it seems to me to be the best Editor for development !


(https://ae.amigalife.org/index.php?action=dlattach;topic=1108.0;attach=5502;image)