Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1943 > unrolled thread

Cross-compiler from Windows to Mac OSX?

Started byLeff Ivanov <droiddermo@gmail.com>
First post2018-02-01 06:38 -0800
Last post2018-05-05 20:33 +0200
Articles 8 — 6 participants

Back to article view | Back to comp.compilers


Contents

  Cross-compiler from Windows to Mac OSX? Leff Ivanov <droiddermo@gmail.com> - 2018-02-01 06:38 -0800
    Re: Cross-compiler from Windows to Mac OSX? Kaz Kylheku <217-679-0842@kylheku.com> - 2018-02-02 02:35 +0000
    Re: Cross-compiler from Windows to Mac OSX? Marco van de Voort <marcov@toad.stack.nl> - 2018-02-02 14:13 +0000
    Re: Cross-compiler from Windows to Mac OSX? alexfrunews@gmail.com - 2018-02-14 19:42 -0800
    Re: Cross-compiler from Windows to Mac OSX? Luuk <luuk@invalid.lan> - 2018-02-17 10:41 +0100
      Re: Cross-compiler from Windows to Mac OSX? Leff Ivanov <droiddermo@gmail.com> - 2018-03-01 13:47 -0500
    Re: Cross-compiler from Windows to Mac OSX? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2018-05-05 13:16 +0200
      Re: Cross-compiler from Windows to Mac OSX? albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2018-05-05 20:33 +0200

#1943 — Cross-compiler from Windows to Mac OSX?

FromLeff Ivanov <droiddermo@gmail.com>
Date2018-02-01 06:38 -0800
SubjectCross-compiler from Windows to Mac OSX?
Message-ID<18-02-002@comp.compilers>
Hello! I'm looking for a compiler that will allow me to cross-compile my code on Windows targeting Mac OSX and some generic Linux distribution. Do you know any compiler that can do it? Basically any programming language will do.

Languages I've found so far:
1) https://golang.org/ (very fat executables)
2) http://www.red-lang.org/ (no x64 compiler, only x86)
3) https://freepascal.org/ (I managed to compile crosscompiler, but it didn't work)

[toc] | [next] | [standalone]


#1944

FromKaz Kylheku <217-679-0842@kylheku.com>
Date2018-02-02 02:35 +0000
Message-ID<18-02-003@comp.compilers>
In reply to#1943
On 2018-02-01, Leff Ivanov <droiddermo@gmail.com> wrote:
> Hello! I'm looking for a compiler that will allow me to cross-compile
> my code on Windows targeting Mac OSX and some generic Linux
> distribution. Do you know any compiler that can do it? Basically any
> programming language will do.

Any Linux distro build that supports being hosted on Cygwin will
build a ... whole Linux distro: C library, bash, kernel, ...

Don't know of one, though! :(

[toc] | [prev] | [next] | [standalone]


#1946

FromMarco van de Voort <marcov@toad.stack.nl>
Date2018-02-02 14:13 +0000
Message-ID<18-02-005@comp.compilers>
In reply to#1943
On 2018-02-01, Leff Ivanov <droiddermo@gmail.com> wrote:
> 3) https://freepascal.org/ (I managed to compile crosscompiler, but it didn't work)


- there is a tool called "fpcdeluxe" that checks out sources and builds
  FPC, and downloads the necessary binutils.

- There is a bundle of FPC with Lazarus IDE called CodeTyphon, which is also
  a good star for crosscompiling.

With Mac OS X, things are always more complex, since OS X doesn't use
binutils.
[If you want to run stuff on MacOS, I'd have to say that a used macbook
or mac mini is a good investment. -John]

[toc] | [prev] | [next] | [standalone]


#1960

Fromalexfrunews@gmail.com
Date2018-02-14 19:42 -0800
Message-ID<18-02-028@comp.compilers>
In reply to#1943
On Thursday, February 1, 2018 at 8:33:18 AM UTC-8, Leff Ivanov wrote:
> Hello! I'm looking for a compiler that will allow me to cross-compile my code on Windows targeting Mac OSX and some generic Linux distribution. Do you know any compiler that can do it? Basically any programming language will do.
>

If you're sure about *any*, here's mine:

https://github.com/alexfru/SmallerC

You can even cross-compile from or for DOS.

Alex

[toc] | [prev] | [next] | [standalone]


#1962

FromLuuk <luuk@invalid.lan>
Date2018-02-17 10:41 +0100
Message-ID<18-02-030@comp.compilers>
In reply to#1943
On 01-02-18 15:38, Leff Ivanov wrote:
> Hello! I'm looking for a compiler that will allow me to
cross-compile my code on Windows targeting Mac OSX and some generic
Linux distribution. Do you know any compiler that can do it? Basically
any programming language will do.

> Languages I've found so far: ...

OpenCobol
http://opencobolide.readthedocs.io/en/latest/download.html

[toc] | [prev] | [next] | [standalone]


#1965

FromLeff Ivanov <droiddermo@gmail.com>
Date2018-03-01 13:47 -0500
Message-ID<18-03-001@comp.compilers>
In reply to#1962
Isn't the OpenCobol/GnuCobol compiling to C? In that case I still need
a C cross-compiler to compile it, which isn't that easy.

[toc] | [prev] | [next] | [standalone]


#2090

Fromalbert@cherry.spenarnc.xs4all.nl (Albert van der Horst)
Date2018-05-05 13:16 +0200
Message-ID<18-05-002@comp.compilers>
In reply to#1943
In article <18-02-002@comp.compilers>,
Leff Ivanov  <droiddermo@gmail.com> wrote:
>Hello! I'm looking for a compiler that will allow me to cross-compile my code on Windows targeting Mac OSX and some generic Linux distribution. Do you know any compiler that can do it? Basically any programming language will do.
>
>Languages I've found so far:
>1) https://golang.org/ (very fat executables)
>2) http://www.red-lang.org/ (no x64 compiler, only x86)
>3) https://freepascal.org/ (I managed to compile crosscompiler, but it didn't work)
>

FASM does a good job. It allows me to build a Forth for Linux (32 64)
and MS WIndows (32 64) on either Linux or MS-Windows.
But assembly may not be what you're after, because it is one architecture.
It cannot cross-build for a DEC Alpha Linux system.

Groetjes Albert
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

[toc] | [prev] | [next] | [standalone]


#2094

Fromalbert@cherry.spenarnc.xs4all.nl (Albert van der Horst)
Date2018-05-05 20:33 +0200
Message-ID<18-05-006@comp.compilers>
In reply to#2090
In article <18-05-002@comp.compilers>,
Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> wrote:
>In article <18-02-002@comp.compilers>,
>Leff Ivanov  <droiddermo@gmail.com> wrote:
>>Hello! I'm looking for a compiler that will allow me to cross-compile my code on Windows targeting Mac OSX and some generic Linux distribution. Do you know any compiler that can do it? Basically any programming language will do.
>>
>>Languages I've found so far:
>>1) https://golang.org/ (very fat executables)
>>2) http://www.red-lang.org/ (no x64 compiler, only x86)
>>3) https://freepascal.org/ (I managed to compile crosscompiler, but it didn't work)
>>
>
>FASM does a good job. It allows me to build a Forth for Linux (32 64)
>and MS WIndows (32 64) on either Linux or MS-Windows.
>But assembly may not be what you're after, because it is one architecture.
>It cannot cross-build for a DEC Alpha Linux system.

Other posts convinced me that I misunderstood the question.
The code must run identically on three implementations.
Then you can add ciforth to the list.
https://forth.hcc.nl/w/Producten/Ciforth

--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

[toc] | [prev] | [standalone]


Back to top | Article view | comp.compilers


csiph-web