Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
thanks for your response. Apologies I have difficulty collecting this concept - its my first major project where I'm unable to convert into a Unicode format using a library. I am trying to learn the lingo better so I may reform the question. When I'm talking about control characters and bit ranges; I'm referring to bitmasking primarily. I should note, this { control: 31, range: [65,122], print: [32,255] } is meant only for ascii. Other records would have different values. Based on what you've mentioned I am looking at BOM and order scheme instead.Thanks for the assist.
@JukkaK.Korpela Apologies if the wording is poor; I will have to rethink how to phrase this. Certainly we know that character encodings can be longer than 1 byte =0 We're trying to filter the first byte first before looking in the rest though. The question is how can an efficient mapping algorithm be implemented while preserving the sort of event hooks and requirements I need, with a few caveats. Anyway I'll think this over and try to edit it.
Shouldn't it only be the allocation commands stored for globals? If you have hardcoded all the values using the primitives like int or char, the size of the executable would definitely increase by more than the amount of variables added. Such as int a1=1,a2=2, ... all the way to... , a1048576=1048576; Only then you'd definitely get something bigger than 1mb i think.
@James Ah, this is not my experience. For instance int test[256][1024]; int main(){ test[0][0]=2; return 0; } This small program has 1MB allocated but only generates me a 1.4 Kb object file and an 8.4 Kb executable. It should use the correct amount of RAM, though.
@Giorgio, for the record, I'm not calling either new, neither method more or less worthy of being mainstream. i'm simply against how it is being taught currently, which is often a waste of time. it's actually because professors often treat it as a stepping stone to OOP, and lose the scope of it's use.
When speaking of the style of programming taught commonly, I'm certainly not going to refer to any good programming.. the procedural code taught in universities now is merely being perpetuated by people not letting go of what they are used to from their youth. Some schools are exceptional as are some programmers...good for them, the few.