size of space to be allocated
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 449 articles for 0.011 sec
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Aug 22, 2008 11:32

...and hadn't bothered to give it a value. Many systems now allocate uninitialized memory by setting page table entries to point to a single page of zeros, using copy on write to allocate pages when it is actually modified. While I wouldn't expect... has the surprising effect that you might not be notified at allocation time that insufficient (virtual) storage is available, but it can fail...
Show full article (0.79Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Aug 22, 2008 11:23

Dan Nagle wrote: storage_size() returns the size in bits, including padding for alignment of array elements. c_sizeof() returns the size in bytes, as bytes are defined by the companion processor. They ... options set to make 32-bit characters default, then c_sizeof() returns the size in 32-bit words, and so on. If unicode gets more ...
Show full article (0.84Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: nospam
Date: Aug 22, 2008 10:53

...and hadn't bothered to give it a value. Many systems now allocate uninitialized memory by setting page table entries to point to a single page of zeros, using copy on write to allocate pages when it is actually modified. While I wouldn... the surprising effect that you might not be notified at allocation time that insufficient (virtual) storage is available, but it can...
Show full article (1.61Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: Dan Nagle
Date: Aug 22, 2008 02:01

Hello, storage_size() returns the size in bits, including padding for alignment of array elements. c_sizeof() returns the size in bytes, as bytes are defined by the ...make 32-bit characters default, then c_sizeof() returns the size in 32-bit words, and so on. storage_size... intended to allow a programmer to catch odd sizes used for any object. c_sizeof() is intended to ...
Show full article (0.95Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: nospam
Date: Aug 21, 2008 22:56

... Buskirk <not_valid@comcast.net> wrote: ? I will assume that you are just trolling for an example: [of how to compute the size of a variable] ... NBytes = size(transfer(MyType(0),int((/0/),selected_int_kind(2)))) Oh yeah. I was thinking there were some more ways that weren't comming to me off the top of my ...
Show full article (0.54Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: James Van Buskirk
Date: Aug 21, 2008 20:57

....nl> wrote: Is there an easy way to get the size in bytes of an intricate user- defined type even if there ... of the usual extensions. There are various ways to get the size of a data object, but not just of a type itself. ...) :: Values END TYPE MyType integer NBytes !NBytes = SIZEOF(MyType) NBytes = size(transfer(MyType(0),int((/0/),selected_int_kind(2)))) write(*,'(a,i0)') '...
Show full article (1.39Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: nospam
Date: Aug 21, 2008 18:28

... posting. If you want the Fortran size of something, you use the intrinsic that ... number of bytes). Storage_size also gives the size of a scalar of the type, ...; in essence, it gives you the size of the type, even though you can...need to do something like storage_size(variable)*size(variable)/8 (or a little fancier if... about the possibility of non-byte sizes). Long ago, I think it used to...
Show full article (3.27Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: Gary Scott
Date: Aug 21, 2008 18:00

.... In f2003, oh, hold on. That's right - that one didn't make it into f2003. One of my pet peeves that f2003 added new features that applied only to f77-style stuff. (You could get the size of the f77 kinds, but that's all). Anyway, the f2008 draft has a storage_size intrinsic. Some compilers might implement it already, as it is trivial. I think the f2008 draft also has C_SIZEOF (or ...
Show full article (1.86Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: nospam
Date: Aug 21, 2008 17:50

...-style stuff. (You could get the size of the f77 kinds, but that...separate inquire with data of known size to deduce what the storage unit...t strictly defined to be the size of the variable, but instead the record size required for it. It is possible for these to... has limitations on allowed record sizes, perhaps requiring a multiple of 4... file and then deduce the data size from the resulting file ...
Show full article (2.64Kb) · Show article thread
Re: size of space to be allocated     

Group: comp.lang.fortran · Group Profile · Search for size of space to be allocated in comp.lang.fortran
Author: nospam
Date: Aug 21, 2008 13:35

Arjan <arjan.van.dijk@rivm.nl> wrote: Is there an easy way to get the size in bytes of an intricate user- defined type even if there is not yet a variable of this type? ... ... not in the standard, and I sort of doubt even most of the usual extensions. There are various ways to get the size of a data object, but not just of a type itself. You don't tend to be able to use a type name as...
Show full article (0.85Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next