Convertir el programa C al idioma de ensamblaje en línea
gcc –S program.cpp
Shy Salamander
gcc –S program.cpp
int A[]={4,-1};
int i=1, tmp;
if (A[i]<A[i-1]) {
tmp = A[i];
A[i] = A[i-1];
A[i-1] = tmp;
}
void wtime(int pcount, int taller)
{
int array[22];
if (pcount == 0)
{
array[0] = 0;
pcount = pcount + 1;
}
for (int x = 1; x < 22; x++)
{
if (x == 8)
taller = taller + 1;
if (x == 15)
taller = taller + 1;
array[x] = 3 * (pcount + taller - 1) / taller;
if (pcount < 7)
pcount = pcount + 1;
else