allocate

Microsoft 전용

해당 할당 선언 지정자는 데이터 세그먼트를 데이터 항목 할당의 이름을 지정 합니다.

__declspec(allocate("segname")) declarator

설명

이름 segname 다음 프로그램 중 하나를 사용 하 여 선언 해야 합니다.

예제

// allocate.cpp
#pragma section("mycode", read)
__declspec(allocate("mycode"))  int i = 0;

int main() {
}

Microsoft 특정 끝

참고 항목

참조

__declspec

C + + 키워드