IT-Consultant: James C. Fuller > Discussion

Address UNICODE 64-bit VS2015

(1/10) > >>

Patrice Terrier:
James--

Here is the WIP project, to work with UNICODE and 64-bit.
EXE binary size: 24 Kb

Not done yet:
- dynamic array to replace vector. (search for //zizi for the things to do)

Tools.h with my new LTRIM, RTRIM, TRIM (any) functions.

...

James C. Fuller:
Patrice,
  WOW! 24Kb
There is a LOT of source code in there to produce such a small exe!
Does this mean you are a fan of TCLib :)

James

Patrice Terrier:
The problem is:
We have to check thorougly each of the function being used to avoid embedding exta code.

Especially when dealing with strings or any oher facilities like Vector.

We have to write our own, but the result is this tiny piece of code that is back to the origin of C, the time where one single exe could fit on a single floppy disk ;)

Hutch will feel very frustrated when seing 64-bit UNICODE code that is able to create smaller exe file than his belowed PB 32-bit ANSI.  ;D

Mike Lobanovsky:
<OT>


--- Quote from: Patrice Terrier on January 18, 2017, 04:32:09 PM ---Hutch will feel very frustrated when seing 64-bit UNICODE code that is able to create smaller exe file than his belowed PB 32-bit ANSI.  ;D
--- End quote ---

Oh, you're exhibiting the competition and sportsmanship egos of your inner character I've never suspected to exist! ;D

</OT>

James C. Fuller:
Patrice,
  I could not find the vector code ??
new/delete are fine for classes as they call the constructor/destructor but for arrays we also need realloc so calloc/realloc/free seem to be more in line.
I have array code from the bcx/bc9 RTL that does DIM,REDIM, and REDIM PRESERVE that should work.
I'll post a c++ demo shortly

James

Navigation

[0] Message Index

[#] Next page

Go to full version