[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

2017/01/28: An issue regarding the front page of /jp/ has been fixed. Also, thanks to all who contacted us about sponsorship.

/g/ - Technology

View post   

[ Toggle deleted replies ]
File: 309 KB, 600x600, 373m4d1do2xx.jpg [View same] [iqdb] [saucenao] [google] [report]
69317284 No.69317284 [Reply] [Original] [archived.moe] [rbt]

So I'll make a program that compiles Assembly into C.

>> No.69317332

Good luck with that

>> No.69317414

Such a magical reverse engineering tool would be revolutionary.

>> No.69317436

Why not just write C and translate to assembly on every system?

>> No.69317439

Hex-Rays Decompiler already exists

>> No.69317462

It's always the fucking frog poster

>> No.69317726

hexrays ida pro is what you're looking for anon
and probably other disassemblers that do it

>> No.69317946

not OP, but where can I get hex-rays decompiler for free?

>> No.69317989

Pshaw, it doesn't even decompile it into executable C. I'm making an actual compiler that will translate Assembly into real C code, which you can then recompile and redistribute.

>> No.69317997

You might be on to something. We'll need a logo.

>> No.69318095

It'll mostly be about detecting sys calls and replicating their behavior across platforms.

>> No.69318551

>assembly isn't portable!
I never got this meme. If you want to assemble source code for another architecture, you find another assembler that can - or just use macros to do the same thing. It's not any different then C where you might need to find another compiler for some obscure architecture, and a lot of compilers were only designed for a particular architecture, anyway.
So? At the end of the day, all software is non-portable - try running 8 or 16 bit programs on computers today, even for processors in the same architecture family that the smol bit stuff was written for. It simply won't run because it's too old. Saying higher level languages are portable, is like trying to argue it's one minute more portable then something else. Eventually all software will need to be remade or updated to actually retain any sense of "portability" that autists screech over.

>> No.69318606


>> No.69319433

You can easily make a macro-meta-assembler unifying different register name conventions, instructions and provide some meta-instructions. Plan 9 assembler did that and Go assembler as well.

C is too high-level to reliably describe assembly programs, hell it abstracts registers and loading memory for starters

>> No.69319645

int rax = 0 //mov rax, 0
rax += 1 //add rax, 1

>> No.69319721

I literally had the same thought for like a few days ago but then i realized how fucking retarded it was so i didn't even try to pursue it. God damn it anon just write C.

Name (leave empty)
Comment (leave empty)
Password [?]Password used for file deletion.