Liste des Groupes | Revenir à cl c |
On 28 Feb 2025 09:59, David Brown <david.brown@hesbynett.no> wrote:
[snip]On the other hand, if you are interested in learning the intricacies>
of the x86 world, you need to look elsewhere for information - as
Keith says, it is not really C related when you are writing
assembly. comp.arch might be a helpful group.
Looks like comp.arch might be the group I needed to find! Thanks.
[snip]
Also just to clarify, from what I know, since the x86 processors start
in 16-bit real mode for the sake of compatibility, you'd have to start
writing 16-bit code first, then switch to 32-bit protected mode, then
finally switch to 64-bit long mode. However if you use an existing
bootloader such as GRUB, then you usually would not need to worry about
16-bit code since GRUB drops you in 32-bit protected mode. But still,
if you wish to switch to 64-bit long mode, you *will* have to mix 64-bit
and 32-bit code together.
>
Either I don't know how to, or I just don't feel comfortable mixing
32-bit and 64-bit code together *when in C* because you will have a hard
time linking those together. Please correct me if I am wrong.
Les messages affichés proviennent d'usenet.