• 0

VB6 Compiler


Question

10 answers to this question

Recommended Posts

  • 0

Faster. I'm not exactly fussed since i can program in both VB and C++ but yeah this was just a thought

The VB Compiler seems to be using a generic set of instructions which is slower then what say c++ would do for the same task

IE. Adding 5 to a number a million times is alot slower to do in VB then it is in C++

however its the same task why can't the compiler optimize it a bit more? vb/c++ code don't "look" that different

long temp = 0;

temp++;

-------------------

Dim temp as long

temp = temp + 1

Link to comment
https://www.neowin.net/forum/topic/479567-vb6-compiler/#findComment-587713972
Share on other sites

  • 0

i'm not sure if this would speed up your example, but this makes vb6 programs smaller and somewhat faster, still nowhere near the speeds of c++ though.

Take compiler (cl.exe) and linker (link.exe) (and their configuration files) from Microsoft Visual C++ Toolkit 2003

Backup cl.exe and LINK.exe in you're vb6 directory

Overwrite them with the one's from c++

Link to comment
https://www.neowin.net/forum/topic/479567-vb6-compiler/#findComment-587714474
Share on other sites

  • 0
  cx323 said:

i'm not sure if this would speed up your example, but this makes vb6 programs smaller and somewhat faster, still nowhere near the speeds of c++ though.

Take compiler (cl.exe) and linker (link.exe) (and their configuration files) from Microsoft Visual C++ Toolkit 2003

Backup cl.exe and LINK.exe in you're vb6 directory

Overwrite them with the one's from c++

Can you explain this a bit more? You tried this? Any more detailed instructions how to do it?! Thanx!

Link to comment
https://www.neowin.net/forum/topic/479567-vb6-compiler/#findComment-587715079
Share on other sites

  • 0
  Quote

I would focus on making your code faster rather than using compiler optimizations to enhance slow code. That will get you the best results possible without switching to another language (like c++).

I aim in creating highly efficient code just i feel that for code i use in vb thats almost exactly the same in c++ should be if not the same speed since its not any easier then c++

  Rudy said:

unfortunatly C++ will pretty much always be faster at doing the same task as VB. VB is meant to be easy at the expense of efficiency

as i said if they are doing virtually the same task i feel the compiler should compile them the same way

  Quote

i'm not sure if this would speed up your example, but this makes vb6 programs smaller and somewhat faster, still nowhere near the speeds of c++ though.

Take compiler (cl.exe) and linker (link.exe) (and their configuration files) from Microsoft Visual C++ Toolkit 2003

Backup cl.exe and LINK.exe in you're vb6 directory

Overwrite them with the one's from c++

This could be interesting i'll try it out ^_^

Link to comment
https://www.neowin.net/forum/topic/479567-vb6-compiler/#findComment-587715507
Share on other sites

  • 0
  DDStriker said:

I aim in creating highly efficient code just i feel that for code i use in vb thats almost exactly the same in c++ should be if not the same speed since its not any easier then c++

as i said if they are doing virtually the same task i feel the compiler should compile them the same way

Unfortunately, you have to live with the language's shortcomings as much as its strengths. I can whine and complain that my car doesn't have 600 HP and go 0-60 in 3 seconds, but that won't change anything. The simple fact is that my car can't do that, and never will.

If you want the fastest app possible, write all your code in assembly (Y) Guaranteed to be as fast or faster (if you know what you're doing and can impliment all of the optimizations used by compilers of other languages) than any other language.

Link to comment
https://www.neowin.net/forum/topic/479567-vb6-compiler/#findComment-587715540
Share on other sites

  • 0
  John said:

Unfortunately, you have to live with the language's shortcomings as much as its strengths. I can whine and complain that my car doesn't have 600 HP and go 0-60 in 3 seconds, but that won't change anything. The simple fact is that my car can't do that, and never will.

If you want the fastest app possible, write all your code in assembly (Y) Guaranteed to be as fast or faster (if you know what you're doing and can impliment all of the optimizations used by compilers of other languages) than any other language.

Sounds good :D

sort of off topic here but im just wondering if i implement MMX functions in my code for an Intel Processor..what happens when its executed on a processor without MMX Support? can i have a statement that checks if its supported and if not use different code?

Link to comment
https://www.neowin.net/forum/topic/479567-vb6-compiler/#findComment-587715555
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Hasleo Disk Clone 5.2.2.1 by Razvan Serea Hasleo Disk Clone is a free and all-in-one disk cloning software for Windows 11/10/8/7/Vista and Windows Server that can help you migrate Windows OS to another disk, clone one disk to another disk or clone one partition to another location quickly and efficiently. Completely Free Windows Migration and Disk/Partition Cloning Software Migrate Windows from one disk to another without reinstalling Windows, apps. Clone one disk to another and makes the data on 2 disks are exactly the same. Clone a partition to another location without losing any data. Easily adjust the size and location of the destination partition. Convert MBR to GPT or convert GPT to MBR by cloning. Creation of Windows PE emergency disk. Extremely fast cloning speed and multi-language support. Supported OS: Windows Vista/Server 2008 or later, fully compatible with GPT and UEFI. Note: Hasleo Disk Clone 5.2.2.1 changelog is not yet available. Download: Hasleo Disk Clone 5.2.2.1 | 28.8 MB (Freeware) Link: Hasleo Disk Clone Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Shouldn't using "High Performance" mode prevent c-states from initializing? Maybe AMD hasn't built a proper power plan for their x3d processors like they used to for their ryzen chips.
    • Vivetool also has a GUI. Literally took me three clicks to enable this from there.
    • Microsoft Weekly: OneDrive horror stories, ramblings about Start menu, and more by Taras Buria This week's news recap is here, delivering you a roundup of the most important Microsoft stories, including a bunch of odd stuff and bugs in Windows, OneDrive horror stories, ramblings about the Start menu, a couple of new Windows 11 preview builds, important news from AMD, and a lot more. Quick links: Windows 10 and 11 Windows Insider Program Updates are available Reviews are in Gaming news Windows 11 and Windows 10 Here, we talk about everything happening around Microsoft's latest operating system in the Stable channel and preview builds: new features, removed features, controversies, bugs, interesting findings, and more. And, of course, you may find a word or two about older versions. Microsoft released a new out-of-band update to fix boot issues on certain Surface devices. The company announced certain Windows 365 updates, such as VBS and HVCI support (by default) and app provisioning in Windows 365 instead of entire cloud PCs. Microsoft is also removing legacy drivers from Windows Update in a new "strategic move." This is the default Windows 365 wallpaper On the negative side, we have the latest Patch Tuesday updates breaking the DHCP Server in all Windows Server editions. Also, there is some bad news for PC users with Windows Hello cameras: after the April 2025 Patch Tuesday updates, Windows Hello does not work in the dark. The change was quietly introduced to address security issues. Windows Goodbye That is not all, though. As it turned out, solid-state drives from WD could still block your computer from installing Windows 11 version 24H2, which was released in October 2024. Also, Microsoft's Family Safety feature is now blocking Chrome, for some reason. Here is an editorial from Usama Jawad (welcome back) about how, four years after the initial release, Windows 11 still does not offer strong enough reasons to upgrade from the outgoing Windows 10. Also, Usama shared his thoughts about the Start menu and why he had stopped caring about its changes altogether. Speaking of the Start menu, check out our overview of what users wanted from Microsoft and what the company delivered in the redesigned Start menu, which was recently announced. Windows Insider Program Here is what Microsoft released for Windows Insiders this week: Builds Canary Channel Build 27881 This week's Canary build introduced context menu improvements, new accessibility features, Settings app tweaks, and more. Dev Channel Nothing in the Dev Channel this week Beta Channel Nothing in the Beta Channel this week Release Preview Channel Build 26100.4482 (KB5060829) This build improves File Explorer and search performance, adds some changes to default browser settings, and fixes multiple bugs. Some hidden stuff in the recent Windows 11 preview builds includes a new adaptive battery saver. This feature dynamically adapts battery saver mode according to your workflow, but in its current form, it is not fully operational. Even though Microsoft acknowledged its existence, the adaptive part still needs improvements. Another useful change in the recent builds is the return of a clock in the notification center. This time, however, Microsoft makes it more customizable, and you can toggle it on or off. Also, the company is moving more Control Panel bits to the Settings app and adding a rather unexpected customization feature that will let you select where system indicators (flyouts and sliders) appear on the screen. Microsoft started rolling out a new update for the Snipping Tool app. The latest release lets you save screen recordings as GIFs. Shortly after that, we posted a guide with a bit more detail about the feature. Updates are available This section covers software, firmware, and other notable updates (released and coming soon) from Microsoft and third parties, delivering new features, security fixes, improvements, patches, and more. Microsoft is working on a Dashboard redesign for PowerToys. Developers published an early look at what is coming to the app in future updates, revealing a better-organized page with quick links, a shortcut overview, and a list of available modules. This week's Office updates are rather mixed. OneDrive, for one, is having problems finding files. Microsoft acknowledged the issue, which affects users on Windows, iOS, Android, and the web. Unfortunately, that is not the only negative story about OneDrive. A new report from a frustrated user revealed a scary tale of Microsoft locking them out of an account full of invaluable content. Outlook also has some issues, this time, with opening emails, and Microsoft 365 will soon disable outdated protocols for file access. Finally, Copilot in Excel received a major update for context awareness, which made the assistant more useful when answering questions about data. This week's browser updates include several releases. Firefox announced a new method for pinning and unpinning tabs. It is now available for testing in the Nightly channel. Microsoft Edge was updated with fixes for two security vulnerabilities (high severity) originating from Chromium. Finally, here is this week's Microsoft 365 Roadmap with an overview of all the new stuff that Microsoft added to the website. Here are other updates and releases you may find interesting: Microsoft 365 security in the spotlight after Washington Post hack. Microsoft expands European sovereign cloud offerings with new data and key controls. Microsoft Defender XDR received TITAN-powered Security Copilot recommendations. Microsoft reportedly plans more layoffs. Watchdog found Microsoft guilty of confusing advertising when it comes to Copilot. Here are the latest drivers and firmware updates released this week: AMD released a new chipset driver for Ryzen processors under version 7.06.02.123, which followed a security update for TPM-Pluton. Nvidia 576.80 WHQL with fixes for the RTX 5090 FE, new game support, and a long list of fixes. You can get some extra performance on certain AMD Ryzen chips with a simple system tweak. Surface Pro 11 and Surface Laptop 7 received big firmware updates with multiple fixes and improvements. Reviews are in Here is the hardware and software we reviewed this week This week, Steven Parker reviewed the TerraMaster D4 SSD, a palm-sized DAS with up to 32TB of storage that you can connect over USB4. This thing is rather impressive, and for a modest price tag, it delivers a tiny footprint, great looks, full RAID support in TOS 6, quick connection, and more. On the gaming side Learn about upcoming game releases, Xbox rumors, new hardware, software updates, freebies, deals, discounts, and more. AMD and Microsoft announced some big news this week. The two companies revealed a new multi-year partnership, which secures AMD as the future maker of chips for Xbox consoles and other hardware. Sarah Bond announced the partnership in a new video on the official Xbox media channels. Turn 10 Studios announced a new Forza Motorsport update. Update 21 brings IndyCar content, Career mode expansion, Featured Tours, new reward cars, and more. It is now available on Xbox and PC via the Microsoft Store and Steam. Minecraft is another Microsoft-owned game that received a big update this week. The long-anticipated graphics overhaul is finally here with directional lighting, volumetric fog, improved shadows, reflections, godrays, and a lot more. In addition, Mojang released Chase the Skies, the latest content drop, which adds happy ghasts, new music disks, a locator bar for players, environmental fog in the overworld, new background music, and all sorts of small gameplay changes. Microsoft announced new games for Game Pass. The latest additions include FBC: Firebreak, Crash Bandicoot 4: It's About Time, Start Trucker, Wildfrost, Rematch, Call of Duty: WWII, Rise of the Tomb Raider, and more. As usual, some games are leaving the subscription. Valve released a big update for the Steam overlay. The latest version introduced major upgrades to CPU and VRAM usage, temperatures, and other important metrics that you might want to track when playing games on your gaming rig. Deals and freebies Also, be sure to check out this week's Weekend PC Game Deals article, which features rhythm bundles, fishing festivals, DRM-free summer sales, and more. Other gaming news includes the following: Take-Two confirmed Borderlands 4 will not cost $80 for the base game. The Coalition expanded the Gears of War: Reloaded beta after its rocky start. Ara: History Untold 1.4 update delivered overhauls to AI, map generation, combat, and more. Star Citizen Alpha 4.2 update lands with radiation hazards, dynamic rain, and more. This link will take you to other issues of the Microsoft Weekly series. You can also support Neowin by registering a free member account or subscribing for extra member benefits, along with an ad-free tier option. Microsoft Weekly image background by steve_a_johnson on Pixabay
  • Recent Achievements

    • First Post
      Johnny Mrkvička earned a badge
      First Post
    • Week One Done
      viraltui earned a badge
      Week One Done
    • One Month Later
      serfegyed earned a badge
      One Month Later
    • Dedicated
      firey earned a badge
      Dedicated
    • Dedicated
      fettermanj earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      634
    2. 2
      ATLien_0
      229
    3. 3
      Michael Scrip
      218
    4. 4
      Xenon
      149
    5. 5
      Steven P.
      140
  • Tell a friend

    Love Neowin? Tell a friend!