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

相关推荐
C^h12 小时前
c++ string
开发语言·c++
听风说ml12 小时前
socket编程 【C语言】
c语言·udp·tcp·socket编程
raindayinrain12 小时前
c++高性能--原子操作,无锁编程,操作顺序
开发语言·c++·性能优化
学逆向的12 小时前
C++ 合并命名空间
开发语言·c++·网络安全
Zhao-Jichao12 小时前
VS2026 打包 C++ 程序生成 EXE,借助 Installer Project 扩展工具
开发语言·c++
学逆向的13 小时前
C 局部静态变量
c语言·开发语言·网络安全
大都督会赢的13 小时前
C++第一节课
开发语言·c++
“AI国潮设计-小江”14 小时前
【AIGC实战】Python+Stable Diffusion打造“英歌舞财神”IP,解锁“马到成功”等爆款情绪营销文案设计
开发语言·人工智能·python·prompt·aigc
小王C语言14 小时前
Qt常用控件:容器类控件,标题分组框、标签页(浏览器标签)
开发语言·qt
我是唐青枫14 小时前
Kotlin Delegation 委托详解
开发语言·kotlin