Author Topic: How to use a new C compiler with BCX?  (Read 906 times)

3oheicrw

  • Newbie
  • *
  • Posts: 6
    • View Profile
How to use a new C compiler with BCX?
« on: November 01, 2022, 10:05:18 AM »
I'm a completely new user. I downloaded the latest BcxAdp.zip and I found various .BAT files defining various compilers. It gives me the impression that I could add and use a new C compiler. I wanted to add and use OrangeC compiler: https://github.com/LADSoft/OrangeC

How could I do so? Thanks.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 2330
    • View Profile
Re: How to use a new C compiler with BCX?
« Reply #1 on: November 02, 2022, 07:46:50 PM »
James Fuller packaged ADP and would be the best authority to answer you.
 
I don't use ADP and did not find any clues in its Help file about setting up any new compilers. 

One idea you could investigate, if you are dead set on using ADP, would be to replace the compiler and linker settings and statements inside ADP's batch files with the corresponding Orange C settings and statements.

I've never known any BCX user express an interest in Orange C, so you really have a bit of work ahead of you.

3oheicrw

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: How to use a new C compiler with BCX?
« Reply #2 on: November 03, 2022, 12:07:42 AM »
What about using plain BCX with OrangeC? Please let me know how.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 2330
    • View Profile
Re: How to use a new C compiler with BCX?
« Reply #3 on: November 03, 2022, 08:12:39 AM »
Do you have experience using BCX?

Do you have experience using Orange C?

BC.exe is all you need to translate Hello.bas   

PRINT "Hello, World"

into Hello.c

Once you have that, use your knowledge or Orange C to compile and link and executable.

3oheicrw

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: How to use a new C compiler with BCX?
« Reply #4 on: November 04, 2022, 11:18:27 AM »
The generated C only has ifdefs to cover MSVC, GCC, Clang, Embarcadero, Pelles C, OpenWatcom and LCC. OrangeC is not covered. Even though OrangeC successfully compiled the generated C of your single line "Hello, World", I don't think it will work with more complex code. So the answer is it's not possible to use an unsupported C compiler.