Page 1 of 1

It is necessary to rewrite programs from MSVC to GCC

Posted: Sat Feb 24, 2024 8:31 pm
by turbocat
There is some problem that does not allow us to safely move to Git and build a Docker container. These are programs that are currently compiled using Microsoft's proprietary C++ compiler (MSVC). Which we are now forced to run from under Wine on the build server. Here is a list of these programs:

games/kosilka
games/fara
games/rforces
games/xonix
games/LaserTank
media/ac97snd

All these programs need to be rewritten either to build TCC or for GCC (probably GCC since C++ can be used there). The rewriting will probably come down to correcting assembly language inserts from MASM to GAS style.

Re: It is necessary to rewrite programs from MSVC to GCC

Posted: Mon Feb 26, 2024 11:52 am
by z525
turbocat wrote: Sat Feb 24, 2024 8:31 pm The rewriting will probably come down to correcting assembly language inserts from MASM to GAS style.
Could it be possible to maintain an Intel syntax?
e.g.

asm(".intel_syntax noprefix\n"
"mov eax, 42 \n");

or

asm(".intel_syntax noprefix\n");
asm( "mov eax, 42");

> gcc .... -masm=intel