Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: output confusion Pin
Estys4-Jun-10 22:18
Estys4-Jun-10 22:18 
AnswerRe: output confusion [modified] Pin
DaveyM695-Jun-10 1:35
professionalDaveyM695-Jun-10 1:35 
AnswerRe: output confusion Pin
#realJSOP5-Jun-10 1:58
mve#realJSOP5-Jun-10 1:58 
GeneralRe: output confusion Pin
DaveyM695-Jun-10 2:20
professionalDaveyM695-Jun-10 2:20 
GeneralRe: output confusion Pin
Luc Pattyn5-Jun-10 2:47
sitebuilderLuc Pattyn5-Jun-10 2:47 
GeneralRe: output confusion Pin
DaveyM695-Jun-10 3:10
professionalDaveyM695-Jun-10 3:10 
GeneralRe: output confusion Pin
Luc Pattyn5-Jun-10 3:23
sitebuilderLuc Pattyn5-Jun-10 3:23 
GeneralRe: output confusion - OT Pin
DaveyM695-Jun-10 4:28
professionalDaveyM695-Jun-10 4:28 
How to handle bit lengths for types values that don't require all of them or require more is still an issue in some situations.

In my MIDI exploits I'm working with 16bit PICs at the moment. The choice between the complexity and therefore instruction cycle overhead of storing 2 bytes in one word (made more complex as packets can be variable lengths so won't always be word aligned) and the waste of scarce resources by ignoring 8 bits for every byte I need to buffer is one I'm still debating.

MS[^] use one 32bit int (all packets, except SysEx which is easy to identify, are 1 to 3 bytes) and 'waste' between 8 and 24 bits each time. Fine on a PC but not efficient useage of RAM on a µC with only 2KB RAM when requiring 4 individual buffers.
Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

GeneralRe: output confusion - OT Pin
Luc Pattyn5-Jun-10 4:40
sitebuilderLuc Pattyn5-Jun-10 4:40 
GeneralRe: output confusion Pin
Luc Pattyn5-Jun-10 3:31
sitebuilderLuc Pattyn5-Jun-10 3:31 
GeneralRe: output confusion Pin
Estys5-Jun-10 3:11
Estys5-Jun-10 3:11 
QuestionControl: Get value from a Form Pin
MBGustavo4-Jun-10 20:01
MBGustavo4-Jun-10 20:01 
AnswerRe: Control: Get value from a Form Pin
#realJSOP5-Jun-10 2:03
mve#realJSOP5-Jun-10 2:03 
GeneralRe: Control: Get value from a Form Pin
MBGustavo5-Jun-10 4:45
MBGustavo5-Jun-10 4:45 
QuestionIphone programming(Please Help) Pin
future38394-Jun-10 13:57
future38394-Jun-10 13:57 
AnswerRe: Iphone programming(Please Help) PinPopular
Luc Pattyn4-Jun-10 14:37
sitebuilderLuc Pattyn4-Jun-10 14:37 
GeneralRe: Iphone programming(Please Help) Pin
Not Active5-Jun-10 2:54
mentorNot Active5-Jun-10 2:54 
GeneralRe: Iphone programming(Please Help) Pin
Luc Pattyn5-Jun-10 3:11
sitebuilderLuc Pattyn5-Jun-10 3:11 
QuestionHow can I remotely explore my LAN? Remoting? Pin
Member 18349914-Jun-10 6:57
Member 18349914-Jun-10 6:57 
AnswerRe: How can I remotely explore my LAN? Remoting? Pin
Not Active4-Jun-10 7:06
mentorNot Active4-Jun-10 7:06 
AnswerRe: How can I remotely explore my LAN? Remoting? Pin
#realJSOP4-Jun-10 7:31
mve#realJSOP4-Jun-10 7:31 
AnswerRe: How can I remotely explore my LAN? Remoting? Pin
Member 18349914-Jun-10 8:52
Member 18349914-Jun-10 8:52 
GeneralRe: How can I remotely explore my LAN? Remoting? Pin
#realJSOP5-Jun-10 1:56
mve#realJSOP5-Jun-10 1:56 
Questionproblem in Class Pin
SajjadZare4-Jun-10 6:15
SajjadZare4-Jun-10 6:15 
AnswerRe: problem in Class Pin
Abhinav S4-Jun-10 6:18
Abhinav S4-Jun-10 6:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.