我想在汇编编译后执行ld命令写了个函数,如下:
(defun vwiss/gnu–ld ()
“Gun ld command.”
(interactive)
(let*
((filename (file-name-sans-extension buffer-file-name))
(file (concat filename ".o")))
(if (file-exists-p file)
(progn
(set (make-local-variable 'compile-command)
(format "ld -m elf_i386 -s -o %s %s"
filename file))
(compile compile-command))
)
)
)
没有执行compile函数。这个应该怎么操作?求解。。。