Repository navigation
m3core: fold RTMachine into RTStack - #1355
Conversation
RTMachine.i3 held only FrameInfo, which RTStack.Frame renamed. The per-target copies that once made it machine dependent are gone; the one left in common is the same on every target. Declare the record as RTStack.Frame and delete RTMachine. The layout is unchanged, and it still matches Frame in walker/RTStackC.c. Comments in m3core.h, walker/RTStackC.c, runtime/m3makefile and README-ex_stack.md that pointed at RTMachine now point at RTStack. The ALPHA_OSF and SOLsun RTMachine.i3 files are left alone; only their m3makefile-old lists them. Closes #1338. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@jaykrell, this does what you suggested in #1338. Could you review it? It touches the runtime, so I'd like a second pair of eyes. The record layout is unchanged; the one thing to check is that nothing on Windows still refers to 🤖 Generated with Claude Code |
There was a problem hiding this comment.
Remove those few lines? They aren't needed?
We only need a pointer to, not the full definition?
Or maybe fix them?
Sorry I didn't notice these earlier.
There was a problem hiding this comment.
Maybe remove the struct definition?
Since it is now wrong?
And doesn't appear needed?
Or else move the correct one here.
Its two-field body no longer matched RTStack.Frame. Hand-written C (no_walker/RTStackC.c) only passes pointers to it, and walker/RTStackC.c has its own full layout, so the forward declaration is all that is needed. As Jay pointed out in review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, Jay, good catch. Done in the latest push: 🤖 Generated with Claude Code |
Closes #1338.
RTMachine.i3held a single type,FrameInfo, whichRTStackre-exported asRTStack.Frame. The per-target copies that once made it machine-dependent are gone, and the one left inruntime/commonis the same on every target.This declares the record directly as
RTStack.Frameand deletescommon/RTMachine.i3.Frameinwalker/RTStackC.c.RTMachineexceptRTStack.i3, and Modula-3 callers ofRTStack.Frameuse onlypcandsp.RTMachine, inm3core.h,walker/RTStackC.c,runtime/m3makefileand the current-state paragraph ofREADME-ex_stack.md, now point atRTStack.ALPHA_OSFandSOLsunRTMachine.i3files, which only theirm3makefile-oldlists;README-ex_stack.md;docs/help;I_RTMachineentry inexamples/win32-dll/src/m3main.c, which already lists other long-gone interfaces.Testing.
RTStack,walker/RTStackC.c,RTExStack,RTHeapStatsandRTAllocStats, with no errors. I couldn't complete the shared-library link locally, because the only compiler on hand is an msir build whose ABI-guard symbol master's m3core doesn't define; that's unrelated to this change.🤖 Generated with Claude Code