1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
boyakko [2]
3 years ago
5

Your task is to fill in the missing parts of the C code to get a program equivalent to the generated assembly code. Recall that

the result of the function is returned in register %eax. You will find it helpful to examine the assembly code before, during, and after the loop to form a consistent mapping between the registers and the program variables.
Engineering
1 answer:
Rudik [331]3 years ago
6 0

Answer:

See Explaination

Explanation:

//Function

long loop (long x, long n)

{

//Declare a variable named result and initialize it to zero

long result = 0;

//Declare a variable named mask

long mask;

//For loop

for(mask = 1; mask != 0; mask = mask << (n & 0xFF))

{

//Calculate

result | = (x&mask);

}

//Return result

return result;

}

You might be interested in
100 kg of R-134a at 200 kPa are contained in a piston–cylinder device whose volume is 12.322 m3. The piston is now moved until t
LekaFEV [45]

Answer:

T=151 K, U=-1.848*10^6J

Explanation:

The given process occurs when the pressure is constant. Given gas follows the Ideal Gas Law:

 pV=nRT

For the given scenario, we operate with the amount of the gas- n- calculated in moles. To find n, we use molar mass: M=102 g/mol.  

Using the given mass m, molar mass M, we can get the following equation:  

 pV=mRT/M

To calculate change in the internal energy, we need to know initial and final temperatures. We can calculate both temperatures as:

T=pVM/(Rm); so initial T=302.61K and final T=151.289K

 

Now we can calculate change of U:

U=3/2 mRT/M using T- difference in temperatures

 U=-1.848*10^6 J

Note, that the energy was taken away from the system.  

5 0
3 years ago
Hello , how are yall:))))
SVEN [57.7K]

Answer:

eh I'm good hbu?????????

6 0
2 years ago
Read 2 more answers
What does the supply chain management process involve
VMariaS [17]

Answer:

It involves the active streamlining of a business's supply-side activities to maximize customer value and gain a competitive advantage in the marketplace

Explanation:

Supply chain management is the management of the flow of goods and services and includes all processes that transform raw materials into final products.

5 0
3 years ago
I want a real answer to this, not just take my points
faust18 [17]

The reason you dream about him is because you continuously think about him, maybe even before falling asleep.

7 0
2 years ago
(a) The lower yield point for an iron that has an average grain diameter of 1 x 10-2 mm is 230 MPa. At a grain diameter of 6 x 1
olya-2409 [2.1K]

Answer:

The answer is "4.35 \times 10^{-3}\  mm and 157.5 MPa".

Explanation:

In point A:

The strength of its products with both the grain dimension is linked to this problem. This formula also for grain diameter of 310 MPA is represented as its low yield point  

y =  yo + \frac{k}{\sqrt{x}}

Here y is MPa is low yield point, x is mm grain size, and k becomes proportionality constant.  

Replacing the equation for each condition:  

y = y_o + \frac{k}{\sqrt{(1 \times 10^{-2})}}\\\\\ \ \ \ \ \ \ 230 = yo + 10k\\\\ y = yo + \frac{k}{\sqrt{(6\times 10^{-3})}}\\\\275 = yo + 12.90k

People can get yo = 275 MPa with both equations and k= 15.5 Mpa mm^{\frac{1}{2}}.

To substitute the answer,  

310 = 275 + \frac{(15.5)}{\sqrt{x}}\\\\x = 0.00435 \ mm = 4.35 \times 10^{-3}\  mm

In point b:

The equation is \sigma y = \sigma 0 + k y d^{\frac{1}{2}}

equation is:

75 = \sigma o+4 ky \\\\175 = \sigma o+12 ky\\\\ky = 12.5 MPa (mm)^{\frac{1}{2}} \\\\ \sigma 0 = 25 MPa\\\\d= 8.9 \times 10^{-3}\\\\d^{- \frac{1}{2}} =10.6 mm^{-\frac{1}{2}}\\

by putting the above value in the formula we get the \sigma y value that is= 157.5 MPa

5 0
2 years ago
Other questions:
  • A converging-diverging nozzle is designed to operate with an exit Mach number of 1.75 . The nozzle is supplied from an air reser
    15·1 answer
  • A 1-lb collar is attached to a spring and slides without friction along a circular rod in a vertical plane. The spring has an un
    6·1 answer
  • A copper wire of original diameter .80 m exhibits a maximum tensile load/ strength at an engineering stress= 248.2 mpa. its duct
    11·1 answer
  • Water circulates throughout a house in a hot water heating system. If the water is pumped at a speed of 0.50m/s through a 4.0-cm
    5·1 answer
  • Policy makers in the U.S. government have long tried to write laws that encourage growth in per capita real GDP. These laws typi
    6·1 answer
  • Refrigerant-134a enters a diffuser steadily as saturated vapor at 600 kPa with a velocity of 160 m/s, and it leaves at 700 kPa a
    10·2 answers
  • The device whose operation closely matches the way the clamp-on ammeter works is
    8·1 answer
  • Determine the average power, complex power and power factor (including whether it is leading or lagging) for a load circuit whos
    9·2 answers
  • You’re going to write a program that models the Littleton City Lotto (not a real Lotto game). The program is going to allow to u
    6·1 answer
  • What competitive strategy was used by Regal Marine?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!