- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Can I disamble an elf file into an assembly file and then compile this assembly file into an executable?
Thanks!コピーされたリンク
3 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi Cloud,
> Can I disamble an elf file into an assembly file If you're planning to use objdump/readelf, the output contains extra information that isn't suitable for direct assembly ... but you can get close ;-) Regards, --Scott- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I take it you are going to modify the code to make it more efficient. If that's the case you might want to just optimize the bottlenecks (if your code was big then you'll have a lot of work ahead of you to decipher what the compiler does to your code (use very little optimization so that you don't get completely lost))
Cheers- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
If you are indeed trying to hand-optimize the assembly code created by the compiler,
I recommend that you use the -S option to gcc. Instead of creating a .o file, it will generate a .s file containing the assembly code that it generated. You can then edit this file and then assemble it with gcc.