Near and Far JMPs
问题 I am doing Linux assembly and I understand that is has a flat memory model. What I am confused about is NEAR and FAR JMPs. NEAR is in the same segment while FAR is another segment. From what I understand there are no segments in linux virtual memory? Also how do we know if my program's code is laid out in multiple segments? 回答1: It hasn't been segments for a long time now. The correct term in protected mode x86 is selector. Having said that, the difference between a near jump and a far one is