BCX基础
BCX Basic

原始链接: https://bcxbasiccoders.com/

BCX是一个免费且开源的BASIC到C/C++翻译器,旨在创建高效的原生Windows桌面应用程序。它允许熟悉QuickBasic、TurboBasic、PowerBasic或VB6等BASIC方言的用户利用其现有知识,同时受益于C/C++的强大功能和性能。 BCX将BASIC代码翻译成高度兼容的C/C++代码,支持MS Visual C++、LLVM/Clang和MinGW等编译器。它的速度非常快,可以在不到一秒钟的时间内翻译超过38,000行的自身代码。翻译器只输出必要的函数和数据,从而最大限度地减少代码大小。BCX也是一个非常有用的教学工具,适合C编译器新手学习使用。 BCX包括一个命令行翻译器、代码生成器、向导、全面的帮助文件和许多示例程序。定期更新和专门的论坛确保用户可以访问最新版本和支持。BCX提供了从BASIC到C/C++的轻松过渡,实现了“BASIC的易用性和C++的强大功能!”

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 BCX Basic (bcxbasiccoders.com) 4 分 by shakna 2 小时前 | 隐藏 | 过去 | 收藏 | 讨论 加入我们,参加 6 月 16-17 日在旧金山举办的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:

原文

BCX is FREEWARE and OPEN SOURCE

BCX converts your BCX BASIC source code into high performing, efficient C\C++ source code. Use C\C++ libraries and header files without having to first convert them into BASIC.

BCX is great for long time BASIC lovers, as well as anyone looking for an easy to grasp, rational approach to creating small, fast, native code Windows Desktop apps.   

BCX uses traditional BASIC statements, commands and functions, along with many new features for easily creating 32/64 bit Windows desktop apps. If you've used QuickBasic, TurboBasic, PowerBasic, or VB6 then you will feel right at home coding in BCX.

Start enjoying the Ease Of BASIC and the Power of C!


So ... Just How Powerful is BCX?

BCX is programmed entirely using BCX BASIC and it is FAST!   BCX translates its own source code, over 38,000 lines of code, in under 1 second on a modest Intel i7 desktop computer running Windows 11 Pro.

BCX BASIC to C/C++ Translator (c) 1999-2025 by Kevin Diggins
Version 8.2.6 (2025/03/15) Compiled for 64-bit Windows using LLVM-Clang (20.1.0)
[Lines In: 38703] [Lines Out: 41980] [Statements: 28363] [Time: 0.89 sec's]
BCX translated bc.bas to bc.cpp For a C++ Compiler

The source code produced by BCX is highly compatible and
has been successfully compiled using these popular compilers:

MS Visual C/C++
LLVM/Clang C/C++
Mingw32/64 C/C++
Pelles C Compiler
LccWin32 C Compiler
Embarcadero C++
Intel C++ Compiler

When BCX converts your BASIC files to C\C++, only the functions and data that your program uses are written out to the .c or .cpp file.  That keeps your code size as small as possible. If you are just starting out with C compilers, BCX willl be a tremendous teaching tool for you. The source code that BCX generates is formatted, easy to read, and well thought out.  BCX has been around for 20 years, and a lot of user input and know-how has made BCX what it is today.

BCX includes the command line translator, various code generators, menu and message box wizards, an outstanding, indexed and searchable BCX Programmer Help file, and hundreds of GUI, Console Mode, and DLL sample programs that will help you get up to speed quickly using BCX.

After installing BCX, join the forum, so you can download the latest version of the BCX Translator and Help File which are updated regularly.

联系我们 contact @ memedata.com