r/programming • • Jul 17 '20

What it was like learning programming in the early 1970s

[deleted] — view deleted post

16 Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/caspper69 Jul 17 '20

There's a lot of different ways to skin this cat. Bootstrapping, cross-compilers, even a Canadian cross.

You would be hard pressed to find hardware that has no working compiler toolchain.

1

u/anddam Jul 18 '20

I am curious about the Canadian cross, never heard that before.

1

u/caspper69 Jul 18 '20 edited Jul 18 '20

A Canadian cross is building a cross-compiler on arch A that is meant to run on arch B, but targets arch C.

For example, I might use x64 gcc to build an arm gcc that targets risc-v. Contrived example I know, but common in embedded.

Edit: for full disclosure, you can substitute "target" for "arch." Because if you want to be pedantic, any target that is not the native target implies cross compilation. So building a Windows app using GCC on Linux would be cross compilation, even though they may both be x64 binaries.