We’re now going to resurrect the cmdline program from Chapter 4 . In that program, we passed some string parameters into the program on the command line. This time we’re going to pass in some string parameters, but we’ll treat them as doubles and get their values using the glibc function atof() (atof stands for ASCII to float). We’ll read in some values and treat them as doubles (32-bit values). To do that, we need to use one of the floating point registers, xmm0.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Using Floating Point Registers

  • John Schwartzman

摘要

We’re now going to resurrect the cmdline program from Chapter 4 . In that program, we passed some string parameters into the program on the command line. This time we’re going to pass in some string parameters, but we’ll treat them as doubles and get their values using the glibc function atof() (atof stands for ASCII to float). We’ll read in some values and treat them as doubles (32-bit values). To do that, we need to use one of the floating point registers, xmm0.