Wednesday, 2 December 2015

Which is best to use? If-else or Switch statemet?

 The if-elseif-else sequence tends to be both larger and slower than its counterparts.
Converting the code sample to fit a switch-case construct improves the size, if the values are
dense, and increases the speed of the resultant assembly output.

Tuesday, 1 December 2015

Advantages of Assembly language over C?

1.Efficient use of space and machine cycles
2.Used in Complex programming (Mostly time dependent)
3.Meeting timing constraints
4.Economical use of ROM and RAM