News for hackers. Stuff that matters.
Re:Ziglings: Learn the Zig programming language by fixing ti... by dleslie on Saturday February 13, 2021 @09:32PM (#26129152)
I really wish zig were a gcc frontend; the m68k and sh2 targets available in gcc make it desirable for a certain form of hobby programming.
Re:Ziglings: Learn the Zig programming language by fixing ti... by danielEM on Saturday February 13, 2021 @10:40PM (#26129444)
C target would solve it, I would be happy to use it with sdcc
Re:Ziglings: Learn the Zig programming language by fixing ti... by dleslie on Saturday February 13, 2021 @11:22PM (#26129663)
Ha, making gameboy games in zig would be neat.
Re:Ziglings: Learn the Zig programming language by fixing ti... by slimsag on Sunday February 14, 2021 @12:43AM (#26130002)
A few folks are working on gameboy emulators: https://github.com/nrdmn/awesome-zig#emulators
Re:Ziglings: Learn the Zig programming language by fixing ti... by dleslie on Sunday February 14, 2021 @01:29AM (#26130172)
That's not really the same as producing binaries that can function on original hardware.
Re:Ziglings: Learn the Zig programming language by fixing ti... by Bekwnn on Saturday February 13, 2021 @11:12PM (#26129607)
I'm not sure on the specifics of what you mean, but zig comes bundled with and wraps gcc. `zig cc` command directly forwards to gcc (try `zig cc --version`) and zig's build system can be used to build C programs.

Zig currently is able to target quite a bit. There's a good chance you could open an issue and it would get added, or find an existing issue and see where it is on the roadmap.

Re:Ziglings: Learn the Zig programming language by fixing ti... by mkishi on Sunday February 14, 2021 @12:08PM (#26133986)
Zig ships with clang, not gcc.
Re:Ziglings: Learn the Zig programming language by fixing ti... by dleslie on Saturday February 13, 2021 @11:22PM (#26129662)
I was under the impression it was limited to llvm supported targets; of which m68k is not officially supported.