AMD-AOCC-Extension-v-1.0.0Initial releaseAMD-AOCC-Extension-v-1.0.0 for Visual Studio CodeThis release of the AMD-AOCC-Extension-v-1.0.0 is for Linux 64-bit and it adds C/C++/Fortran support to Visual Studio Code which can be used with AOCC compiler. Overview and getting startedAMD-AOCC-Extension-v-1.0.0 overviewC/C++/Fortran support for Visual Studio Code is provided by a AMD-AOCC-Extension-v-1.0.0 to enable C, C++ and Fortran development on Linux using AOCC compiler. Getting startedC/C++/Fortran compiler The AMD-AOCC-Extension-v-1.0.0 does not include a C/C++/Fortran compiler. You will need to install these tools or use those already installed on your computer. Eg: AOCC compiler Link for aocc compiler https://developer.amd.com/amd-aocc/ Note : Make sure AOCC compiler binary is sourced in platform path so the extension can find it. Install the AMD-AOCC-Extension-v-1.0.0
Note : If you have missed sourcing the AOCC compiler path before the extension is installed then you can source the path in terminal or in extension settings and you can reload the extension. Using the AMD-AOCC-Extension-v-1.0.0Get started with C/C++/Fortran and VS Code with Hello World tutorials for your environment: Create Hello WorldFrom the terminal window, create an empty folder called projects to store your VS Code projects. Then create a subfolder called helloworld, navigate into it, and open VS Code in that folder by entering the following commands: mkdir projects; cd projects; mkdir helloworld; cd helloworld; code . The code . command opens VS Code in the current working folder, which becomes project "workspace". And you will be able to see .vscode folder containing the below file in the workspace. tasks.json (compiler build settings) Create helloworld program and save. Eg: helloworld-c.c, helloworld-cpp.cpp, helloworld-f90.f90 Build helloworld programClick the 'Extensions' icon on the Sidebar (Ctrl+Shift+X) and you will able to view the AMD-AOCC-Extension-v-1.0.0 under enabled menu and click on 'Manage' icon and select 'Extension Settings'. Under the User tab you can find aocc compiler specific settings, If user changes any settings they can reload the extension
Running the build
|