Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 1.5 KB

File metadata and controls

69 lines (56 loc) · 1.5 KB
title __based Grammar | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
devlang-cpp
ms.tgt_pltfrm
ms.topic language-reference
dev_langs
C++
helpviewer_keywords
based addressing
ms.assetid a68ff750-c7fa-4c0c-8d5f-2df76e4686c5
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw
translationtype Human Translation
ms.sourcegitcommit 3168772cbb7e8127523bc2fc2da5cc9b4f59beb8
ms.openlocfilehash 94b7002caffc6c3c6a198b1001b6073ca0027463

__based Grammar

Microsoft Specific

Based addressing is useful when you need precise control over the segment in which objects are allocated (static and dynamic based data).

The only form of based addressing acceptable in 32-bit and 64-bit compilations is "based on a pointer" that defines a type that contains a 32-bit or 64-bit displacement to a 32-bit or 64-bit base or based on void.

Grammar

based-range-modifier:
__based( base-expression )

base-expression:
based-variablebased-abstract-declaratorsegment-namesegment-cast

based-variable:
identifier

based-abstract-declarator:
abstract-declarator

base-type:
type-name

END Microsoft Specific

See Also

Based Pointers