Recent

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

Seenkao

  • Hero Member
  • *****
  • Posts: 544
    • New ZenGL.
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.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

PascalDragon

  • Hero Member
  • *****
  • Posts: 5444
  • 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