Discussion:
Frame Size in C language split in OS Pages
(too old to reply)
pallav singh
2014-02-09 05:59:17 UTC
Permalink
Hi All,

Can a frame in C language be split in 2 pages and also range over multiple OS Pages in Linux.

Thanks
Pallav Singh
George Neuner
2014-02-10 06:56:25 UTC
Permalink
On Sat, 8 Feb 2014 21:59:17 -0800 (PST), pallav singh
Post by pallav singh
Hi All,
Can a frame in C language be split in 2 pages and also range over multiple OS Pages in Linux.
Thanks
Pallav Singh
If by "frame" you mean "stack frame" then yes and yes. Virtual memory
paging is mostly language independent so the same is true for any HLL.

However, while a frame can span 2 pages, it may be difficult to
construct a frame that spans more. VM pages be made very large in
many systems (including Linux). Most modern OS configurably support a
number of page sizes from 4KB up to 1-2MB. Some 64-bit systems even
go larger.

George

Loading...