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 smiley

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.
2  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: No cost streams on: February 13, 2009, 10:58:15 pm
Nice! This saved many lines of code, and actually made the binary a wee bit smaller smiley

Now if only I could get rid of sprintf and strcpy()... I wouldn't have to import stdio.h and I'd save 2k!
3  Forum 2005-2010 (read only) / Bugs & Suggestions / 15 thread search limit on: May 24, 2009, 06:59:45 pm
Is there any way to increase this? It really can make it hard to find stuff.... Not to mention it will increase the number of duplicate posts.

I've never setup YaBB before... what kind of database backend are you using?
4  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Windows 7 bug (scroll mouse) on: May 15, 2009, 09:37:11 pm
Hahah, took me a couple reads to get that.

You are right, but as developers, we have to implement our own workarounds for microsoft bugs. There's no guarantee that MS will ever fix anything.

I saw a really funny book at Borders the other day:
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.

6  Forum 2005-2010 (read only) / Bugs & Suggestions / how to help with documentation? on: February 11, 2009, 11:14:05 pm
I continue to notice more and more missing or incomplete info in the documentation. What is the best way to provide feedback for the docs? I could post here every time I find something, but that could clutter up the forums....

7  Forum 2005-2010 (read only) / Syntax & Programs / Re: optimizing code? on: March 03, 2009, 02:59:34 am
Gotcha. I mistakingly called it a disassembler. Makes sense.
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. smiley

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!
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: Software reset on: July 29, 2009, 12:52:27 am
Useful post, thanks!
12  Forum 2005-2010 (read only) / Interfacing / Re: CAN BUS + ARDUINO on: July 29, 2009, 10:53:54 am
Yes, please keep us updated smiley
13  Forum 2005-2010 (read only) / Development / Re: What are the differences in all the SD card libs? on: September 02, 2009, 10:20:15 am
I went through testing a few of those libraries a couple months ago. Each one has different features... some, like ufat, are stripped down to the bare essentials. Some are faster, some more reliable. Some work better with older cards. Some read, some write. I ended up sticking with ladyada's:

It has worked well for me. The only problem I have is that the files aren't readable under Windows 7. I think it's b/c the library doesn't save the date/time to the file, which confuses Windows 7.
14  Forum 2005-2010 (read only) / Development / Re: Lady Ada's "save some memory" Serial hack on: March 15, 2009, 01:22:45 am
15  Forum 2005-2010 (read only) / Development / Re: why is the binary bigger when using makefile? on: February 14, 2009, 09:47:57 pm
Thanks for the tip. Most of the optimizations didn't make a difference, but one did. It actually compiled smaller (8550 bytes).

The one that helped was adding "-Wl,--gc-sections" to the elf link process. I'll post up a makefile after I've tested it a bit more.
Pages: [1] 2 3 ... 5