explain this indirect call mention here: The programming language certainly affects the…
Jump to turn (20)
- 1explain this indirect call mention here: The programming language certainly affe
- 2explain why C would be less instructions
- 3give me a concrete example where you walk through the difference between C and J
- 4One of the key differences is that Java uses objects to represent arrays, which
- 5first lets talk about the indirection. are we saying that every time we want acc
- 6ah, so whats the point of this offset? why isnt the first element just at the po
- 7ok look, we're not doing a good job of enumerating the huge diffrence in exeucti
- 8so you're saying elements could be variable distances apart in a javascript arra
- 9why would we not have to calculate the offset in c++ since we can use variaable
- 10and java doesnt have this?
- 11explain the indirection, because im really not seeing why this would result in s
- 12show me those instructions in java, like finding the object, the field, bounds c
- 13yeah makes more sense. why is the lsat step 'returning the value' in java, but l
- 14nah its cool i get it. ok so i think the differences are clearer now. when alloc
- 15the last thing i dont quite get is these references to java object fields. are t
- 16ok well im really not seeing hwo that's slower than pointer math - that is - the
- 17explain the fragmentation and cache misses please?
- 18i think im geting the pictrue here, except for one key peice. when i want a a va
- 19kinda, but im still condused as to why a super simple program in C++ that might
- 20alright. but im 100% laser focused on understanding the sources of IC, instructi
- User
explain this indirect call mention here:
The programming language certainly affects the instruction count, since statements in the language are translated to processor instructions, which determine instruction count. The language may also affect the CPI because of its features; for example, a language with heavy support for data abstraction (e.g., Java) will require indirect calls, which will use higher CPI instructions.
- Assistant