Recent

Author Topic: Assembler. Internal compiler error.  (Read 456 times)

Seenkao

  • Full Member
  • ***
  • Posts: 249
Assembler. Internal compiler error.
« on: September 20, 2021, 06:54:41 am »
Rus:
Во внутреннем компиляторе команда movq len,%ecx скомпилируется без ошибки (не соответствие размерности команды и регистра, должен быть регистр rcx). Внешний ассемблер сообщит об ошибке, но не в указанном месте.

Получается что при достаточно большом коде, мы не сможем найти ошибку, пока не переберём весь код вручную.

Eng:
In the internal compiler, the command movq len,%ecx is compiled without an error (there is no correspondence between the dimension of the command and the register, there must be a register rcx). The external assembler will report an error, but not at the specified location.

It turns out that with a sufficiently large code, we will not be able to find the error until we manually iterate through the entire code.

PascalDragon

  • Hero Member
  • *****
  • Posts: 3391
  • Compiler Developer
Re: Assembler. Internal compiler error.
« Reply #1 on: September 20, 2021, 09:02:06 am »
In the internal compiler, the command movq len,%ecx is compiled without an error (there is no correspondence between the dimension of the command and the register, there must be a register rcx).

Please report a bug.

The external assembler will report an error, but not at the specified location.

It turns out that with a sufficiently large code, we will not be able to find the error until we manually iterate through the entire code.

There's nothing we can do about the external assembler. You could report a bug directly with them of course.

 

TinyPortal © 2005-2018