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沟通,达到构建成型的目的。

相关推荐
夏幻灵2 小时前
JavaScript this 面试:五种绑定规则、优先级与常见面试陷阱
开发语言·javascript·面试
程序猿编码3 小时前
榨干 RTX5090 算力!Qwen3 专用单卡推理引擎,手写C++/CUDA 算子实现 MTP 推测解码
开发语言·c++·大模型推理·qwen3·多模态推理
bkspiderx4 小时前
Qt 插件机制:动态扩展应用功能的核心框架
开发语言·qt·元数据·qt 插件·qpluginloader
程序员老陆4 小时前
深入理解 C++ thread_local:线程私有存储的正确打开方式
开发语言·c++·程序设计
沐晓时光4 小时前
C语言入门,深入理解指针(3)
c语言·开发语言
码云数智-园园5 小时前
unique_ptr 还是 shared_ptr?C++ 智能指针选型与内存泄漏实战分析
java·开发语言
禾小西6 小时前
07丨Redis 哨兵机制:主库故障后,如何恢复服务?
java·开发语言·redis
我不是阵雨6 小时前
JDK 21虚拟线程Pinning陷阱:一文拔钉解困
java·开发语言
SuperByteMaster6 小时前
wfi进入之前没有清除basepri, 导致中断优先级不够,wfi 退不出来
c语言
徐小黑ACG6 小时前
Golang 基础05 结构体struct
开发语言·算法·golang