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 <
[email protected]> wrote:

> On Wed, Sep 28, 2016 at 6:06 AM, Madhu K <[email protected]> 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
>
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to