To clarify, 'rebuilt' in the title means reverse-engineered and reconstructed by AI.
What’s up with ai titles of the format:
Short description, adjective more description
I've been building a web based editor inspired by the Borland Turbo Pascal/Basic editors. It uses an optional GitHub token to save files directly to your repo. You can try it here:
Impressive. But the critical missing feature is a step in the process that transforms the resulting source into readable source, using transforms that are provably identical in behavior.
I'd love to run this for the nostalgia value, and I did buy the original software but left it behind long ago. Oh, well. ("You need the original Borland programs" -- very reasonably.)
Claude usually gives me some bullshit nannying when I try to reverse engineer stuff.
Sincere question: why? Source like this is a notch better than raw decompiler output in the pre-AI era, but what's the expectation / use case?
if((ES_B(_BX,MEMB_FLAGS)&3)==3) {
_DI=ES_W(_BX,MEMB_VALUE);
_ES=SYMBOL_POOL_SEG;ES_W(0,SYM_TYPE)=base;
if(ES_W(_DI,SYM_FUNC_KIND)==2) {
while(!TYPES_COMPATIBLE(TYPE_W(SYM_W(_DI,SYM_TYPE),TYPE_TARGET),TYPE_W(base,TYPE_TARGET),0)) _DI=SYM_W(_DI,SYM_NEXT_OVERLOAD);
} else {
while(!SAME_SIGNATURE(SYM_W(_DI,SYM_TYPE),base)) _DI=SYM_W(_DI,SYM_NEXT_OVERLOAD);
}
if(_DI==0) {_DI=_DI;goto next_param;}
I grant you that it's a thing you can do with agents, and it's impressive that it works, but once the tokens are spent, what does anyone get out of it? I guess I wonder if AI projects are becoming a bit of a "social proof of money spent".Since we live in the age of vibe recompilation, reverse engineering etc where everything seems possible, let me drop a wish for a "Turbo Zig" CLI IDE + compiler that covers most well known microcontrollers.
Watch the use of the word "own" - it's an AI giveaway.
[dead]
[dead]
[dead]
[dead]
This is going to be very helpful for any project to decompile binaries that were compiled with these compilers.
I'm working on something similar though shot of a full decompilation for Microsoft Visual C++, to trace and report the knobs to tune in the internal register allocation algorithm (among other things) to make reversing and decompiling binaries that were compiled with MSVC a much easier task: https://github.com/NoahBPeterson/c2scope