Quantcast
[ 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

>>69317284
Such a magical reverse engineering tool would be revolutionary.

>> No.69317436

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

>> No.69317439

>>69317284
Hex-Rays Decompiler already exists

>> No.69317462

>>69317284
It's always the fucking frog poster

>> No.69317726

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

>> No.69317946

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

>> No.69317989

>>69317439
>>69317726
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

>>69317436
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

>>69317284
>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.
>B-BUT MUH PORTABILITY
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

>>69318551
Based

>> 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

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

>> No.69319721

>>69317284
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)
Name
E-mail
Subject
Comment
Password [?]Password used for file deletion.
reCAPTCHA
Action