1. struct processor_costs i386_cost = { /* 386 specific costs */
  2. 1, /* cost of an add instruction */
  3. 1, /* cost of a lea instruction */
  4. 3, /* variable shift costs */
  5. 2, /* constant shift costs */
  6. 6, /* cost of starting a multiply */
  7. 1, /* cost of multiply per each bit set */
  8. 23, /* cost of a divide/mod */
  9. 15, /* "large" insn */
  10. 3, /* MOVE_RATIO */
  11. 4, /* cost for loading QImode using movzbl */
  12. {2, 4, 2}, /* cost of loading integer registers
  13. in QImode, HImode and SImode.
  14. Relative to reg-reg move (2). */
  15. {2, 4, 2}, /* cost of storing integer registers */
  16. 2, /* cost of reg,reg fld/fst */
  17. {8, 8, 8}, /* cost of loading fp registers
  18. in SFmode, DFmode and XFmode */
  19. {8, 8, 8} /* cost of loading integer registers */
  20. };



GCC에서 i386.c라는 소스의 일부분인데

여기서 cost의 의미가 뭘까

아마도 내 생각에는 해당 작업을 실행하는데 필요한 클럭일것같은데

맞음?