Home > Net >  Can I use classic Borland & clang compiler for the same application
Can I use classic Borland & clang compiler for the same application

Time:12-13

I'm looking for some advice on how to migrate a C Builder 5 project to Embarcadero C Builder 11.

Some of the DLLs can only be compiled with the 'classic' Borland compiler. The rest can be compile with the Clang-compiler.

Can I use 2 different compilers in the same application?

CodePudding user response:

I'm looking for some advice on how to migrate a C Builder 5 project to Embarcadero C Builder 11.

That is a very massive upgrade. A LOT has changed over the decades between the two versions. I hope you are reading the docs in Embarcadero's Migration and Upgrade Center, for starters.

Some of the DLLs can only be compiled with the 'classic' Borland compiler. The rest can be compile with the Clang-compiler.

Can I use 2 different compilers in the same application?

If the EXE and DLLs are all compiled to be self-contained (ie, no Runtime Packages, no Dynamic RTL, no shared Memory Manager, not sharing object files, etc), and they all follow safe guidelines about memory management and using only safe and compatible POD data types across the DLL boundaries, etc, then in that regard, it should be possible to compile each module with a different compiler.

  • Related