that is extremely helpful.  I work with many platforms.



>________________________________
> From: Pau Garcia i Quiles <[email protected]>
>To: [email protected] 
>Sent: Thursday, February 9, 2012 3:55 PM
>Subject: Re: [Mingw-w64-public] sizeof(size_t) on 64-bit systems with auto 
>build?
> 
>
>Hi,
>
>This might be useful:
>
>https://www.assembla.com/spaces/zsync-windows/wiki/Types_sizes
>
>
>
>On Fri, Feb 10, 2012 at 12:14 AM, Jim Michaels <[email protected]> wrote:
>
>
>>hi...
>>does anyone know what sizeof(size_t) is in 64-bit systems?
>>
>>
>>#include <iostream>
>>#include <string>
>>using namespace std;
>>int main(void) {
>>    cout<<sizeof(size_t)<<endl;
>>    return 0;
>>}
>>
>>
>>this needs to be run on a 64-bit system.  I have a 32-bit system.  I could 
>>use the help.  I use the auto build.
>>
>>
>>the help is appreciated.  on a 32-bit system, this program prints out 4.  IF 
>>it prints out 8 on a 64-bit system, I have a problem to address, and I need 
>>to stuff in a lot of #ifdefs
>>because fprintf is unforgiving of data
 types (I can only think of %I64u and %lu, no resizeable size_t data types), 
and I have no clue how to switch streams between cout and ostream safely.
>>
>>
>> 
>>-------------
>>Jim Michaels
>>[email protected]
>>[email protected]
>>http://JimsComputerRepairandWebDesign.com
>>http://JesusnJim.com (my personal site, has software)
>>---
>>Computer memory measurements, SSD measurements, microsoft disk size
 measurements (note: they will say GB or MB or KB or TB when it is not!):
>>[KiB] [MiB] [GiB] [TiB]
>>[2^10B=1,024B=1KiB]
>>[2^20B=1,048,576B=1MiB]
>>[2^30B=1,073,741,824B=1GiB]
>>[2^40B=1,099,511,627,776B=1TiB]
>>hard disk industry disk size measurements:
>>[KB] [MB] [GB] [TB]
>>[10^3B=1,000B=1KB]
>>[10^6B=1,000,000B=1MB]
>>[10^9B=1,000,000,000B=1GB]
>>[10^12B=1,000,000,000,000B=1TB]
>>
>>
>>
>>------------------------------------------------------------------------------
>>Virtualization & Cloud Management Using Capacity Planning
>>Cloud computing makes use of virtualization - but cloud computing
>>also focuses on allowing computing to be delivered as a service.
>>http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>_______________________________________________
>>Mingw-w64-public mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>
>
>-- 
>Pau Garcia i Quiles
>http://www.elpauer.org
>(Due to my workload, I may need 10 days to answer)
>
>------------------------------------------------------------------------------
>Virtualization & Cloud Management Using Capacity Planning
>Cloud computing makes use of virtualization - but cloud computing 
>also focuses on allowing computing to be delivered as a service.
>http://www.accelacomm.com/jaw/sfnl/114/51521223/
>_______________________________________________
>Mingw-w64-public mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to