Project

General

Profile

Ошибка #37

Ошибка инициализации статических локальных и глобальных указателей в LCC

Added by a.efimov_multiclet almost 9 years ago. Updated almost 9 years ago.

Status:
Закрыта
Priority:
Немедленный
Assignee:
Start date:
10/31/2013
Due date:
% Done:

100%

Estimated time:

Description

Пример:

int *b = (int *)0x1234;
static int *a = (int *)0xaa;
int main() {
static int *b = (int *)0xff;
return 0;
}

транслируется в:

.global b
.align 4
b:
.long 0x4

.local a
.align 4
a:
.long 0x4

.local main.b.2SD
.align 4
main.b.2SD:
.long 0x4

O_o

History

#1 Updated by m.bakhterev almost 9 years ago

  • Status changed from Новая to Закрыта
  • Assignee set to m.bakhterev
  • % Done changed from 0 to 100

Also available in: Atom PDF