AI开发C语言应用按步走,我的基础开发环境

我的开发环境介绍

1、基本开发环境

  • 操作系统是Win11,用VMware虚拟了一个Ubuntu26.4,所有开发都在虚拟机上进行。
bash 复制代码
song@song-VMware-Virtual-Platform:~$ uname -a
Linux song-VMware-Virtual-Platform 7.0.0-22-generic #22-Ubuntu SMP PREEMPT_DYNAMIC Mon May 25 15:54:34 UTC 2026 x86_64 GNU/Linux
  • Ubuntu桌面环境采用默认的GNOME中文环境
  • Ubuntu安装后配置输入法,选择了中文极点五笔86输入法
  • 浏览器是系统默认安装的Firefox
  • 终端是系统默认安装的GTerminal
  • 代码编辑器是Emacs30.2
bash 复制代码
ong@song-VMware-Virtual-Platform:~$ emacs --version
GNU Emacs 30.2
Development version 67920fe8bccf on master branch; build date 2026-02-06.
Copyright (C) 2025 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

2、开发工具

  • C语言编译器:GCC15
bash 复制代码
 song@song-VMware-Virtual-Platform:~$ gcc --version
gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • C语言调试工具:GDB17
bash 复制代码
ong@song-VMware-Virtual-Platform:~$ gdb --version
GNU gdb (Ubuntu 17.1-2ubuntu1) 17.1
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  • 构建工具:make
bash 复制代码
ong@song-VMware-Virtual-Platform:~$ make --version
GNU Make 4.4.1
为 x86_64-pc-linux-gnu 编译
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  • 内存检测工具:valgrind
bash 复制代码
song@song-VMware-Virtual-Platform:~$ valgrind --version
valgrind-3.26.0
  • Javascript语言开发工具:nodejs与npm
bash 复制代码
song@song-VMware-Virtual-Platform:~$ node --version
v22.22.1
song@song-VMware-Virtual-Platform:~$ npm --version
9.2.0
  • python语言与工具pip
bash 复制代码
song@song-VMware-Virtual-Platform:~$ python3 --version
Python 3.14.4
song@song-VMware-Virtual-Platform:~$ pip3 --version
pip 25.1.1 from /usr/lib/python3/dist-packages/pip (python 3.14)
  • 版本控制工具:git
bash 复制代码
song@song-VMware-Virtual-Platform:~$ git --version
git version 2.53.0
  • 网络传输工具:curl
bash 复制代码
song@song-VMware-Virtual-Platform:~$ curl --version
curl 8.21.0 (x86_64-pc-linux-gnu) libcurl/8.21.0 OpenSSL/4.0.1 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.0 nghttp2/1.69.0 ngtcp2/1.23.0 nghttp3/1.17.0 mit-krb5/1.20.1 OpenLDAP/2.6.10
Release-Date: 2026-06-24
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt mqtts pop3 pop3s rtsp scp sftp smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

3、atomcode

  • atomcode选择linux版本,直接下载,复制到用户主目录下的atom目录,在终端中运行,每次运行,都自动检测升级
bash 复制代码
song@song-VMware-Virtual-Platform:~/atom$ ./atomcode --version
atomcode 5.0.0 (unknown)
  • 首次运行atomcode,自动登录领取AtomCode CodingPlan免费权益
  • 运行/webui命令,打开浏览器,通过WebUI与atomcode沟通
  • 选择大模型,我选用deepseek-v4-flash
  • plan模式,atomcode收集信息,制订计划
  • build模式,如果计划无误,确认执行

4、检测系统开发环境

  • 注意,在WebUI中输入:检查一下目前这个系统,准备做为开发环境
  • 对!这就开始了!!!
  • 根据你的需求,与atomcode对话吧,我就是用atomcode配置的emacs,来开发C语言和python语言,实现代码高亮显示,关键字补全等功能!!!

5、我的目标

用atomcode来构建一个简单的表达式计算器程序,名叫calc,达到输入表达式,程序输出运算结果的功能,目标简单,便于实现,通过这一过程,提高理解、学习和使用AI工具的能力!!!

后续文章就是calc的构建步骤,都是atomcode生成和总结的,文字和代码都未改动,只通过WebUI或TUI命令行来和atomcode沟通,达到构建成型的目的。

相关推荐
在世修行8 小时前
从零打造 C# 工业视觉检测系统(七):串口通信 SerialPort 封装与开发
开发语言·c#·modbus rtu·rs232/rs485
沫璃染墨8 小时前
《从零入门Linux系统篇(十五):系统工具篇·六——GDB调试器详解:从程序执行控制到高级调试技巧》
linux·运维·服务器·c语言·c++
Hammer_Hans8 小时前
DFT笔记98
java·开发语言·数据库
qq_448011169 小时前
C语言中的野指针和空指针
c语言·开发语言·单片机
估值探索者10 小时前
【Python实时盯盘与预警 #08】成交额突然放大2倍?Python窗口比较抓异动
java·开发语言·python
yk 坤帝10 小时前
用Python实现发送《自动周报》实战脚本
开发语言·python
abbgogo12 小时前
OSPF动态路由协议
开发语言·php
en.en..12 小时前
C 语言嵌入式事件驱动状态机完整教程(枚举配套)
c语言·开发语言
Tim_1012 小时前
【C++】024、new[]与delete[]配对使用
java·开发语言
Yyyyyy~12 小时前
[C语言]break和continue作业
c语言·开发语言