News for hackers. Stuff that matters.
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by colanderman on Thursday January 21, 2016 @12:01AM (#10943459)
IIRC Microchip's 8-bit PIC line had poor/nonexistent GCC support because their terrible instruction set provided no way to maintain a data stack. Their own compiler just allocated everything statically.

Granted, it's (thankfully) been over a decade since I had to use a Microchip microcontroller, and they've presumably improved since. But Atmel got it right from the start. GCC-AVR produced beautiful assembly and their ISA was a joy to use. RIP Atmel.

Re:Microchip Technology to Buy Atmel for Nearly $3.6B by tptacek on Thursday January 21, 2016 @07:56AM (#10944867)
Calling AVR a "joy to use" is pushing it a little far. There are things to like about AVR chips as a package, but the AVR instruction set is pretty janky. I don't understand why they're so popular compared to the MSP430.
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by blackguardx on Thursday January 21, 2016 @11:26AM (#10946261)
I found the AVR instruction set pretty straight forward. Granted, it was my first forray into assembly and I learned it around 17 years ago at age 14. Maybe everything seems easy in hindsight at that age.

I've never programmed MSP430s in assembly, but I have for PICs and found their instruction set to be more funky than AVR.

Re:Microchip Technology to Buy Atmel for Nearly $3.6B by tptacek on Thursday January 21, 2016 @12:44PM (#10946870)
So first a couple caveats: (1) I'm sure AVR is a hell of a let better than PIC, (2) I come at this from a really weird place (exclusively emulators and compilers), and (3) I'm not talking about the AVR parts themselves, which might be more cost-effective for a given project.

That said:

* Harvard architecture (split I & D memory)

* 8 bit registers

* Not at all orthogonal, and particularly painful for pointer addressing

* The stack pointer is annoying to work with

* Address wrap at physical memory bounds, rather than the bounds of address space

I could pick a bunch more nits that would only really be relevant to someone writing an emulator (complicated instruction decode, IO addressing, &c) but those are my big complaints.

I find MSP430 much more pleasant to work in.

Re:Microchip Technology to Buy Atmel for Nearly $3.6B by colanderman on Friday January 22, 2016 @03:46PM (#10955498)
Those are all true (though that an 8-bit microcontroller has 8-bit registers is… unsurprising). However I am referring to the instructions themselves, which were well-engineered to match the needs of a compiler. The result is very compact assembly for most C programs that you would write on an 8-bit microcontroller (including things like 16-bit arithmetic).
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by ild on Thursday January 21, 2016 @12:29PM (#10946757)
1MIPS @ 1MHZ made it popular.
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by saaadhu on Thursday January 21, 2016 @11:19AM (#10946215)
Care to elaborate?
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by wglb on Thursday January 21, 2016 @07:36PM (#10949814)
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by ild on Thursday January 21, 2016 @12:27PM (#10946736)
PICs used to be less power hungry though and had ROM versions.
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by jason_s on Thursday January 21, 2016 @08:39PM (#10950145)
??? Sounds like FUD to me.
Re:Microchip Technology to Buy Atmel for Nearly $3.6B by ild on Monday January 25, 2016 @01:08PM (#10968752)
FUD?? Why? The did have ROM version, and, being made from slower silicon had lower leakage.