This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to re-compile a project with the same results of old compilation

Hello,
I've comipled a project with KEIL in order to generate an Hex code (that is stored in ROM on a chip).
2 days passed, I recomipled the exact same code, and the results of the Hex code are different, and I can see that the compiler changed the address of the internal variables etc.
I need to restore the old results, somehow!!
I have all the object files of the old compilation.
Is there any way to load them?
Anyone knows why the compilation has changed (though the C files have not changed)?
I know that the order of the files written in the left window of the KEIL changes the compilation, but this order has not changed as well.
Please help......
Best Regards,
Noam
-----------

Parents
  • the brain dead IT department that is so worried to keep my laptop running, keeps on making sure that my virus scanner
    1. consumes 50% of the CPU most of the time
    2. hogs the hard drive at the most inconvenient moments, and I cannot even shutdown the service anymore (they found out, damn it).

    FYI Erik, THESE are villains I am prepared to shoot! or: where is my NRA membership card! :-)

    by the way, some vendors lock their tools to a particular hardware configuration. but if many computers are identical (company buys masses when needed, and they are all the same - tool vendor probably don't check MAC address and other really unique stuff...), some can get smart (not me)...

Reply
  • the brain dead IT department that is so worried to keep my laptop running, keeps on making sure that my virus scanner
    1. consumes 50% of the CPU most of the time
    2. hogs the hard drive at the most inconvenient moments, and I cannot even shutdown the service anymore (they found out, damn it).

    FYI Erik, THESE are villains I am prepared to shoot! or: where is my NRA membership card! :-)

    by the way, some vendors lock their tools to a particular hardware configuration. but if many computers are identical (company buys masses when needed, and they are all the same - tool vendor probably don't check MAC address and other really unique stuff...), some can get smart (not me)...

Children
  • "by the way, some vendors lock their tools to a particular hardware configuration."

    Look no further than Keil.

    The MAC address are at the top of the hw-locking list, since it makes sure that a company can't have two concurrently running machines with the same software unless they are in different network segments.

    Not too many can afford to buy an extra license to put on a spare machine and dedicate a single user to be the one and only build master - besides the license the same person has on his/her own machine for actual development.

    I was originally the only Keil user at our company, but we bougt a second license to make sure me and my machine would not be a single-point-of-failure.

    Luckily, we can do 80% of our development with other tools, where redundancy isn't so expensive.

  • one licence per user was purchased (in one case 8, in another 3)

    Eriki

  • We are starting to get way off-topic now :)

    One license / user is quite normal. But one license / machine can feel a bit restrictive.

    I have used a number of MS Visual Studio versions. I have normally installed every new version on a new computer.

    If I need to maintain an old version originally developed -97, I can use the original environment as-is with Visual Studio 97 and all service packs installed. No need to spend time worrying about possible incompatibilities if the code is moved to a several releases newer edition. Most probably, the project history will even show the relevant project.

    I didn't stop with Visual C++ until M$ got political and decided that the profiler should not be available in the largest "single-user" compiler package - now called Visual Studio Professional - but should instead only be available in their "team-edition" kits, where they splitted the product into different roles for different functions in a larger company - one release for testing, another for design, ... Somehow, they decided that if there is only a single user, there would be no need for any profiler - or that it was ok to charge almost three times as much ($6k instead of $2.3k) if a one-man operation needs the profiler. Or if a single user really needs to do both database design, development and testing, then all it takes is $18k..

    There are limits how much a user may be pushed before he jumps ship, and a number of companies are quite busy focusing on short-term gains and not listening to grumblings from their users.

    Pirates never have to bother about software licenses or which kit contains what feature. It's the honest customers who have to sit down and figure out the advantages of expensive commercial kits compared slightly worse commercial kits at a way lower price, or taking the jump all the way to open software. But people who have takend that final jump - and taken the costs to get started - seldom comes back. No more regular ticks for yearly subscriptions or support. So tool vendors really have to think twice about possible short-term gains from too hard licenses or stiff premium charges for the last few tool features.

  • One license / user is quite normal. But one license / machine can feel a bit restrictive.
    well, how many users have more than one "machine"?

    It's the honest customers who have to sit down and figure out the advantages of expensive commercial kits compared slightly worse commercial kits at a way lower price, or taking the jump all the way to open software. But people who have takend that final jump - and taken the costs to get started - seldom comes back. No more regular ticks for yearly subscriptions or support. So tool vendors really have to think twice about possible short-term gains from too hard licenses or stiff premium charges for the last few tool features.
    Well, you, probably, have two groups of customers. Those that gladly accept "too hard licenses or stiff premium charges" for whatever benefit that gains them, and those that do not.
    The only reason to pay the "stiff premium charges" is a productivity gain and if it comes with "too hard licenses" the productivity gain is gone.
    Thus the vendors, if they want to succeed, need drop one of them.

    Erik

  • well, how many users have more than one "machine"?

    Would have thought it was quite common. We certainly have a number of people (me included) who take work away at the end of the day and continue with it at home - Occasionally with full days working at home.

  • It should be noted that Keil normally - even if not mentioned in the license - accepts the tools to be installed on a separate machine. They realize that people like to have both a stationary and a laptop.

  • We certainly have a number of people (me included) who take work away at the end of the day and continue with it at home
    so do we, and those that do work with a docked laptop

    Erik

  • "so do we, and those that do work with a docked laptop"

    But it's so much easier to carry around a copy of the complete project on USB stick than carrying even the lightest laptop.

  • Their loss.

    A good laptop has a hard time competing with a good stationary machine.

    Even with a docking station, you don't get the same options for dual or tripple displays, use of native RS-485 instead of USB-to-RS485 or RS-232 to RS-485, ...

  • And it's harder to play doom :-) :-) :-)

  • Even with a docking station, you don't get the same options for dual or tripple displays

    Erik

    PS one 'p' in triple

  • I'll have to give the other p an early evening then :)

    I didn't say you can't get three displays with a laoptop. I say that you don't get the same options.

    With a stationary PC, I can use a dual-headed board. Or a quad-headed. Or two dual-headed. Or one ligthning fast and a slow. Or two lightning-fast and one or two slow. If I need RAID, I'm free to select which solution. Multiple NIC? 2 gbit NIC is normally the standard now.

    A laptop can do very much, but everything it does is a compromise. Even the portability is a compromise since you want it large enough to be useful with a big and well-lit display, but small enough to be easy to carry and with long battery life. It is perfect when you need to fix something out-of-office, but I still think it'll take maybe two or three years for the laptops to close the gap. And probably not by own power, but by the stagnation of the stationary offerings.

  • I didn't say you can't get three displays with a laoptop. I say that you don't get the same options
    with everything going USB that will soon be different.

    Erik

  • No. At least not until we get the next generation of FW or USB. 480Mbit USB is way too little for a gbit NIC. You can run a PowerPoint presentation with a USB-connected graphics card, but a number of applications suffers. And it is way slower than eSATA. And how fun is it with several external devices that requires individual power adapters?

    Most laptops have an optical drive. Many can write DVD disks. But how many have DVD-RAM? How many can read BluRay? How fast are they at searching, if you boot a Live-CD?

    Many laptops have a memory card slot. But how many have the four slots needed to handle SD, CF, MMC and MemoryStick?

    Good laptops have a 7200rpm HDD. What options are there for 10k or 15k drives? Or running more than one? Yes, you may put a second drive in the docking station or an external cabinet. But you can't have a mirrored system drive, since the mirror would fail the same moment you unplug the laptop from the docking station.

    Having to bring extra devices on a trip means extra weight and shorter battery time.

    A laptop really is a jack-of-all-trades. It can do most things, but often not as good.

  • I use a laptop as rarely as at all poissible.

    I agree, to some extent, with your argument, but for program development you do not need the fancy stuff you mention. Of course uf you play a fast game off a blue ray disk, things are different, but my viewpoint is program development and a bit of e-mail, documents and interenet nothing else

    Erik