Object file section efficiency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Suppose I have some initialized data stored in the .data section of my
kernel module.  Now, as it turns out, that data should have been made
constant, but the latter 'const' linkage qualifer was left off of the
declaration of the variable.  This led me to the following question:

Are there any memory efficiencies with how the kernel loads the .data
vs the .rodata sections into memory?  Will the information stored in
.rodata have better cache performance than that stored in .data?

-Matt

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux