---
title: GetProgramCounter(ISASI)
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendcopapi/atlasascendc_api_07_0279.html
sourcePath: /source/zh/canncommercial/900/API/ascendcopapi/atlasascendc_api_07_0279.html
indexId: 511144a10bc67e5323ee033a3a0237fbf13c73a09641b168da074d518e13a2dc76
---
# GetProgramCounter(ISASI)

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 AI Core | √ |
| Atlas 推理系列产品 Vector Core | x |
| Atlas 训练系列产品 | x |


#### 功能说明

获取程序计数器的指针，程序计数器用于记录当前程序执行的位置。


#### 函数原型

```
__aicore__ inline int64_t GetProgramCounter()
```


#### 参数说明

无


#### 返回值说明

返回int64_t类型的程序计数器指针。


#### 约束说明

无


#### 调用示例

```
int64_t pc = AscendC::GetProgramCounter(); // 获取程序计数器的指针pc
```
