@Minimaul said:
I am so glad that I am not the only one who hates this piece of shit compiler.
My boss seems to think PICs are the best thing ever whereas I just want to use something that actually fucking works, like something ARM or AVR based.
Reminds me. There was this old guy at the company that absolutely loved PICs. I mean he would probably sleep with PICs in his pants love. My god, he would go on rants like PICS HAVE THE MOST PERIPHERALS THAT ANY OTHER MICROS(lol, maybe in 1990s they did).
Or THEY HAVE THE LOWEST POWER. Nope.
Or THEY ARE THE CHEAPEST AND HAVE THE MOST PACKAGES. Nope bro, it's the 21st century.
He would rant and rave about the work he did on making PIC code "interrupt-safe", i.e. instead of a global struct, lets pass a pointer to it instead! (his excuse was you wouldnt know when it changed by interrupt....but that doesnt help...).
My god he loved his abominations of code. He made a smbus slave that had this ridiculous rigid state machine based on data instead of what should have been just a state machine based on hardware status. It was so full of WTFs and repeated code segments. But alas, "THE MICROCHIP GUYS AGREED THIS WAS THE BEST WAY TO DO IT". Yea....no.
He would sing the praises of the excellent PIC compilers and shut up and play dumb every time I brought up a new bug with the compiler to him.
O god, there was this consultant that worked at the company. He worked on a x86 micro(old school) there but my god, the dude took a perfectly good RTOS system and proceeded to fuck it. He intermangled threads so bad there was no point in using an RTOS but its still there to this day. At some point we hired this elite consultant to help with a bug an engineer was having with a PIC.Me and another coworker already told management, it was a undocumented PIC hardware defect. But management couldn't accept their precious garbage was broken. The three embedded engineers pouring over the problem must not know what they are doing with PICs! Quick, hire the jackass consultant we love!
The consultant himself? He reviewed code, commented on useless shit he obviously had no experience. He complained about code style when his RTOS project had absolutely zero sense of the words "code style' meanwhile we actually ran uncrustify on our source.
Me and coworker finally setup a fucking test case right in front of the morons and said go fuck yourselfs.(Or close to it without saying it, heh)