VBCC

derek2210 · 1458

derek2210

  • Newbie
  • *
    • Posts: 15
    • Karma: +4/-0
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.

Regards,

Derek


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #1 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)


Mazze

  • Junior Member
  • **
    • Posts: 88
    • Karma: +36/-0
Reply #2 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



derek2210

  • Newbie
  • *
    • Posts: 15
    • Karma: +4/-0
Reply #3 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.

Regards,

Derek


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #4 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)


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3744
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #5 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 !


derek2210

  • Newbie
  • *
    • Posts: 15
    • Karma: +4/-0
Reply #6 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...

Regards,

Derek


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3744
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #7 on: April 14, 2023, 10:25:59 AM
No need to look at the system, just write GCC in a Shell  :D


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #8 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  :)


cdimauro

  • Member
  • ***
    • Posts: 164
    • Karma: +26/-1
Reply #9 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).



derek2210

  • Newbie
  • *
    • Posts: 15
    • Karma: +4/-0
Reply #10 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?

Regards,

Derek


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #11 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:)



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3744
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #12 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.


« Last Edit: August 14, 2023, 03:51:06 PM by AMIGASYSTEM »



derek2210

  • Newbie
  • *
    • Posts: 15
    • Karma: +4/-0
Reply #13 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.

Regards,

Derek


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3744
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #14 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 !