Archive

eddie

Nov 30

7:55 PM

Endians

I never thought I’d run into an endian problem at work. My coworker called me down to the Technology lab where he was trying to get the device modeling program to work. The program ran on a Windows PC and interfaced with a measurement unit (to measure the actual device) and our UNIX servers (to run simulation).

The program was able to run remote simulations on the UNIX server but no data was coming back. Seemed really weird to me because if it’s able to run simulation, it should be able to copy the data back without any problems. As we scanned through the documentation, I saw it had settings for the endian-ness of the simulator and I thought “why would it have that?”

A second later, it hit me: Intel CPUs are little endian and Sun CPUs are probably big endian. One quick switch and it worked. Holy shit, the CS half of my education helping me at an EE job.

Comments

    • Bigi
    • 7:22 PM

    haha, I dunno about work, but those things did cause problems for me back in college labs.

    • Bigi
    • 7:23 PM

    For that are not for HTML tags, please use < and >. I’ll fix it eventually, promise. Thanks! Add in tech to prevent sending without required fields.

    • Bigi
    • 7:23 PM

    Why did that second comment go in? :/