29 April 2021, 23:27 | #1 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,803
|
Resource : How do you achieve exact same binary on a resourced file
I find quite tedious to have an identical file after having resourced a medium sized program. (15k lines for example)
What are the tricks/options/steps... you use/take to have the same file after reassembling a quite long resourced file? cheers. |
30 April 2021, 08:00 | #2 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,335
|
First step is to get a file that has the exact same size. Normally turning off all asm optimizations is enough.
Then compare the files and check the diffs one by one. It is sometimes just impossible to produce an identical exe (unless you know and can use the exact same tools that were originally used), but if you know that all diffs don't have any impact (i.e. reloc table ordered differently) then it's enough (at least for me). |
30 April 2021, 10:06 | #3 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,803
|
When I use "save executable" it is the same file, but if I save source then assemble it is not.
|
30 April 2021, 10:15 | #4 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,335
|
If "save executable" just makes a copy of the file this sounds quite normal...
|
30 April 2021, 10:59 | #5 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,803
|
You can have it with symbols so I thought it was not
|
30 April 2021, 17:17 | #6 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,803
|
I’m fed up looking for errors leading to crash in some areas I’m gonna use IRA instead.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
resourced ReSource | Wepl | Coders. Asm / Hardware | 59 | 15 October 2023 23:05 |
Is there some compiler providing resource tracking for malloc/free/FILE* handles? | jotd | Coders. C/C++ | 3 | 29 December 2018 11:58 |
Help making a binary file. | Paulee_Bow | Coders. Tutorials | 2 | 11 August 2018 21:43 |
ReSource - How to re-load ASM file? | Sim085 | support.Other | 19 | 26 April 2016 21:59 |
Binary Dinosaurs... | Paul_s | Amiga websites reviews | 4 | 05 November 2009 23:01 |
|
|