Curiosity Question: .rom vs .bin binaries

Other misc things
Post Reply
andrewec
Member
Posts: 49
Joined: Mon Sep 09, 2024 6:28 pm

Curiosity Question: .rom vs .bin binaries

Post by andrewec »

Hi,

When you compile a prrogram with zcc, it produces both a .rom and .bin file. Is there any difference between the two files? I noticed their file sizes differ a tiny bit when compiled in Windows.

Thanks, Andrew
User avatar
dom
Well known member
Posts: 2277
Joined: Sun Jul 15, 2007 10:01 pm

Re: Curiosity Question: .rom vs .bin binaries

Post by dom »

The bin file just contains the code. The rom file also has the data section inserted at the appropriate place.

If you’re not using any statics the difference in file size will be minimal.
andrewec
Member
Posts: 49
Joined: Mon Sep 09, 2024 6:28 pm

Re: Curiosity Question: .rom vs .bin binaries

Post by andrewec »

Thanks Dom.

Andrew
Post Reply