Show Posts
|
|
Pages: [1] 2 3 ... 5
|
|
1
|
Forum 2005-2010 (read only) / Bugs & Suggestions / Re: No cost streams
|
on: February 14, 2009, 03:44:51 pm
|
I *was* using it for string concatenation until you made me realize that I get strcat for free in string.h  Oh man... if only there were an embedded version of python.... Anyways, I see no reason not to put streams in the default namespace. It takes up no additional flash, and it still allows people use the standard print statements, keeping it's "pseudo-sideways-compatibility" with Processing.
|
|
|
|
|
5
|
Forum 2005-2010 (read only) / Bugs & Suggestions / Windows 7 bug (scroll mouse)
|
on: May 15, 2009, 06:22:06 pm
|
|
I've been using v13 in Windows 7. There is a fairly frustrating issue with using the scroll mouse. If you scroll the mouse slowly (like I normally do), the window does not scroll at all. To get the text to scroll, you have to violently move the wheel as fast as you can, but the text still only scrolls a couple of lines.
I checked the changelog for v14 and 15, and it doesn't look like this was addressed, which is why I did not bother to test the problem with those versions.
Justin
|
|
|
|
|
8
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: optimizing code?
|
on: March 02, 2009, 10:09:34 pm
|
After getting trapped in the idea that I needed to write the tightest, fastest possible code on every line, I started to feel like it wasn't worth the effort. Well, when you've maxed out the flash or ram on the controller, then you don't have any other option. I maxed out both on my current project, which lead me to this post. And yes... a 328 is on it's way.  Thanks for the tips above. I didn't realize that the disassembler would show the c source alongside the assembly! That's great!
|
|
|
|
|
9
|
Forum 2005-2010 (read only) / Syntax & Programs / Re: optimizing code?
|
on: February 27, 2009, 07:58:03 pm
|
I guess I'll start with a quick question. Does the compiler automatically convert multiplication and division of powers of two to bit shifts? For example... would this... x = y * 8; be the same as this, in the generated assembly language? x = y <<3;
|
|
|
|
|
10
|
Forum 2005-2010 (read only) / Syntax & Programs / optimizing code?
|
on: February 27, 2009, 07:48:22 pm
|
|
Any tips on optimizing code for the arduino? That is, for execution speed, as well as size. Of course, general c-optimization tips are welcome too! I've found a few general websites for optimizing c, but nothing really for embedded dev.
I figure I might as well start developing good habits now!
|
|
|
|
|