- Netduino Forums
- → Viewing Profile: Posts: Ravenheart
Community Stats
- Group Members
- Active Posts 18
- Profile Views 8156
- Member Title Member
- Age 36 years old
- Birthday June 27, 1989
-
Gender
Male
-
Location
Bulgaria
User Tools
Friends
Ravenheart hasn't added any friends yet.
Posts I've Made
In Topic: Why so slow processing time?
07 June 2011 - 02:49 PM
In Topic: netduino/MF performance
16 March 2011 - 03:31 PM
The .NET Micro Framework is an interpreter, once you get your assembly stripped out that gets sent to the Netduino and that is interpreted when it runs. At no point does your C# project get compiled to native code.Hi Daman.
I did not understand well what is your problem.
What I am tell you, is that the CLR is a very complex layer. Once you have written your C# code, the compiler creates an intermediate-language which is "portable". This is compiled again to native opcodes and sent to the Netduino.
The "overhead" of the CLR stands essentially in the memory management, which is garbage-collected automatically. This process gives you an huge simplicity to develop applications, a really safer way to play with objects, but it has a cost in terms of performance.
Just for have an idea of the timings, the only port read/write tight-loop is able to run at about 8.5KHz. That's is really "disappointing" for a 48MHz chip, but if you were just toggling an output, it's probably easier to write in assembler of C. Instead C#+Micro Framework has huge advantages when you want to embed very complex blocks: e.g. sockets, displays, threading, etc.
Hope it helps.
Cheers
Mario
EDIT: And I was slower to answer

In Topic: Chris the star!
27 February 2011 - 11:42 AM
In Topic: Graphical LCD
20 January 2011 - 05:59 PM
In Topic: Use of Static Keyword
12 January 2011 - 12:45 AM

- Netduino Forums
- → Viewing Profile: Posts: Ravenheart
- Privacy Policy