English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 29 April 2021, 23:27   #1
kamelito
Zone Friend
 
kamelito's Avatar
 
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.
kamelito is offline  
Old 30 April 2021, 08:00   #2
meynaf
son of 68k
 
meynaf's Avatar
 
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).
meynaf is offline  
Old 30 April 2021, 10:06   #3
kamelito
Zone Friend
 
kamelito's Avatar
 
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.
kamelito is offline  
Old 30 April 2021, 10:15   #4
meynaf
son of 68k
 
meynaf's Avatar
 
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...
meynaf is offline  
Old 30 April 2021, 10:59   #5
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,803
You can have it with symbols so I thought it was not
kamelito is offline  
Old 30 April 2021, 17:17   #6
kamelito
Zone Friend
 
kamelito's Avatar
 
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.
kamelito is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:50.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10239 seconds with 15 queries