Virtual Address Space

Madhu K madhu.sk89 at gmail.com
Wed Sep 28 06:21:40 EDT 2016


Hi,

Even I read somewhere, during compilation, compiler will take the linker
script as input and it will generate the virtual addresses.

Thanks,
Madhu

On Wed, Sep 28, 2016 at 2:44 PM, Augusto Mecking Caringi <
augustocaringi at gmail.com> wrote:

> On Wed, Sep 28, 2016 at 6:06 AM, Madhu K <madhu.sk89 at gmail.com> wrote:
> > Hi All,
> >
> > This is to understand the Virtual address space.Basically who generates
> the
> > virtual addresses CPU or GNU compiler?
>
> Hi,
>
>      In my view, the linker.
>
>      The compiler normally generates absolute addresses (starting from
> 0), creating object code.
>
>      Then the linker generates an executable by combining different
> object files together and assigning virtual addresses.
>
>      Finally, is CPU (MMU) job (with the kernel helping) to translate
> these virtual addresses to physical ones.
>
>      Best regards,
>
> --
> Augusto Mecking Caringi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160928/71cf4b92/attachment.html 


More information about the Kernelnewbies mailing list