- struct processor_costs i386_cost = { /* 386 specific costs */
- 1, /* cost of an add instruction */
- 1, /* cost of a lea instruction */
- 3, /* variable shift costs */
- 2, /* constant shift costs */
- 6, /* cost of starting a multiply */
- 1, /* cost of multiply per each bit set */
- 23, /* cost of a divide/mod */
- 15, /* "large" insn */
- 3, /* MOVE_RATIO */
- 4, /* cost for loading QImode using movzbl */
- {2, 4, 2}, /* cost of loading integer registers
- in QImode, HImode and SImode.
- Relative to reg-reg move (2). */
- {2, 4, 2}, /* cost of storing integer registers */
- 2, /* cost of reg,reg fld/fst */
- {8, 8, 8}, /* cost of loading fp registers
- in SFmode, DFmode and XFmode */
- {8, 8, 8} /* cost of loading integer registers */
- };
GCC에서 i386.c라는 소스의 일부분인데
여기서 cost의 의미가 뭘까
아마도 내 생각에는 해당 작업을 실행하는데 필요한 클럭일것같은데
맞음?
댓글 0