Welcome Guest! To enable all features please Login or Register.
Go to last post Go to first unread
#1 Posted : Wednesday, May 20, 2015 1:18:26 AM(UTC)

Rank: Newbie

Groups: Registered
Joined: 5/11/2015(UTC)
Posts: 8

Thanks: 1 times
Considering you can't really see the sketch that Embrio creates (as far as I know) it's hard to tell if it bloats it unnecessarily. Have performance tests been done creating sketches as elegantly as possible and comparing performance? It's most certainly not a deal breaker in most scenarios but it would be good to know how close Embrio gets to the "real thing".
#2 Posted : Wednesday, May 20, 2015 2:24:40 AM(UTC)

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 654

Thanks: 1 times
Was thanked: 36 time(s) in 33 post(s)
You can see the generated code. When you do an upload in embrio look in the message log in the bottom right of the screen, it prints the command line used to upload through arduino which includes the location of the compiled code.

The code embrio generates is very different than what you would write yourself, it doesn't even attempt to come close. Embrio works by isolating code into self contained chunks and executing those chunks at regular intervals. Just in philosophy that is very different than how a person would write code, so things will be diffefent at the code level.

One good thing about embrios architecture is that at design time you can have a very good idea of how long your program takes to run. Look into the profiler tab. This shows you how many microseconds each node takes to execute on your hardware, and because we know how often each node executes there is a pretty accurate estimate of how many milliseconds per second the processor will be used. I'm on a phone so can't link it but there's a video about this is the tutorials section.

I'm not sure how an embrio program compares to a hand coded program that accomplishes the same task. That would be interesting to know but it's not an experiment I've done yet.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.