Original Post
hi,
i''m writing a makefile-generator that uses the cpuid-instruction to get information on which extentions are supported on the platform executing it.
i''ve got a struct with all the features in the there-written order in the memory, so getting through the struct with an incrementing pointer (and an incrementing bitmask) would do it.
however, the problem is that i cannot access a memory location with anything like "mov %%eax, %%ecx+%0". somebody knows a solution?
how can i access the memory address of "%0"?
... in gnu''s assembly syntax
struct _pfeautures
{
int fpu,
vme,
de,
pse,
tsc,
msr,
pae,
mce,
cx8,
apic,
nothing_1,
sep,
mtrr,
pge,
mca,
cmov,
pat,
pse36,
psn,
clfsh,
nothing_2,
ds,
acpi,
mmx,
fxsr,
sse,
sse2,
ss,
htt,
tm,
nothing_3,
sbf;
};