build.zig and memory.x as ld file for tivatm4c123g

This commit is contained in:
Filipriec
2026-03-09 09:06:04 +01:00
parent 27704a2f16
commit d8b4c8e8cf
8 changed files with 153 additions and 13 deletions

21
basics/build.zig Normal file
View File

@@ -0,0 +1,21 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "HAL-9000",
.version = "0.1.0",
.debug = true,
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe);
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
}