• 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

    • NAPS2 (Not Another PDF Scanner 2) 8.2.0 by Razvan Serea NAPS2 is a document scanning application with a focus on simplicity and ease of use. Scan your documents from WIA- and TWAIN-compatible scanners, organize the pages as you like, and save them as PDF, TIFF, JPEG, PNG, and other file formats. NAPS2 creates fully text searchable PDF files that can be imported and indexed within your document management system. NAPS2 is currently available in 40 different languages. NAPS2 key features: Scan documents using WIA- and TWAIN-compatible scanners Scan as many pages as you like from glass or ADF, including duplex support Rotate, flip, remove, and rearrange scanned pages Save as PDF, TIFF, JPEG, PNG, or other file formats Directly email PDFs Search through text included in your PDFs by using optical character recognition (OCR), in any of over 100 languages. Configure brightness, contrast, resolution, and other scan options Save your configurations as profiles to be easily reused later Optional command-line interface (CLI) for automation and scripting MSI installer and application-level configuration available for group policy (GPO) deployment Portable/standalone archives available Translations: English, Català, Čeština, Dansk, Deutsch, Español, Français, Hrvatski, Italiano, Magyar, Nederlands, Polski, Portugues, Russian, Ukrainian, Hebrew NAPS2 8.2.0 changelog: NAPS2 is now available on the Microsoft Store. It costs a small fee to support the developer and provide automatic updates. NAPS2 will continue to be freely available at www.naps2.com Added "Edit with" under the "Image" menu for using an external image editor Added "Share even when NAPS2 is closed" option for Scanner Sharing This will show a system tray icon and restart on login Imported file names are now used as the default file name when saving The "Apply to all selected" checkbox now stays checked Escl: Increased maximum time searching for devices from 5s to 60s Escl: Scanner IPs are now cached for faster and more reliable scanning Windows: Added an arm64 installer Windows: Replaced the "No friendly name" device name from some drivers with "Unknown Scanner" Mac: Fixed an issue where saved files didn't always have the right extension Mac: Disabled the "Apple Mail" email provider when not the default email reader Mac: Updated icons for Split/Combine Linux: Fixed issues with the Save dialog Download: NAPS2 (64-bit) | 43.5 MB (Open Source) Download: Portable NAPS2 8.2.0 | 61.9 MB Link: NAPS2 Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I still remember a prediction that in the future, the BIOS will have all the necessary drivers... for any OS. Still not there
    • No mandatory.... Once again the one-way approach (only incentives or only detractors, or as they say 'the carrot or the stick') has proven ineffective.
    • ScreenToGif 2.41.3 by Razvan Serea Screen, webcam and sketchboard recorder with an integrated editor. ScreenToGif is an open source program that lets you to record a selected area of your screen, live feed from your webcam or live drawings from a sketchboard. Afterward, you can edit and save the animation as a gif, apng, video, psd or png image. Also there's the Webcam Recorder and the Board Recorder. Features: Record your screen and save directly to a gif looped animation or a video. Pause and continue to record or start over by discard the recording. Move the window around to record what you want, it stays on top. You can add Text, Subtitles, Title Frames, Borders, Watermarks, Drawings, etc. Crop and Resize. Remove frames that you don't want. Select a folder to save the file automatically or select one before encoding. Add the system cursor to your recording. Very small sized and portable executable. What's new in ScreenToGif 2.41.3: Reduced app size and migrated to .NET 9. It's now easier to see the brush cursor when painting light or dark colors on background of same lightness (Editor and Board recorder). Add possibility of running the app having only newer versions of .NET by @nil4 in #1381 Updated Turkish translation by @luther09 in #1389 Added தமிழ் (Tamil) translation by @TamilNeram in #1387 Updated Greek Translation by @theoasima in #1346 Fixed Importing frames using FFmpeg v7 was getting stuck. Exporting partially using an expression was not following the frame ordering. Color picker was not selecting the correct hue. Download: ScreenToGif 64-bit | Portable 64-bit ~7.0 MB (Open Source) Download: ScreenToGif 32-bit | Portable 32-bit Download: ScreenToGif ARM64 | Portable ARM64 View: ScreenToGif Home Page | User Guide | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Explzh 9.77 by Razvan Serea Explzh is a free Windows archive manager for creating, extracting and managing archives. The program supports many different types of archives, including zip, 7z, rar, tar, ace, lzh, arj, cab, iso, img, msi, sfx and more. Apart from archive creation and extraction, you will also be able to verify compressed data for errors, initiate repair routines, split data into multiple items, and more. It additionally allows you to password protect your data and attach digital signatures to files. Key features of Explzh: Explorer-like GUI and operability. LHA, ZIP (ZIPX), JAR, CAB, RAR, TAR, TAR.XXX, 7z, ARJ, WIM, CHM, PE, HFS, NSIS Format Installer, ISO, InstallShield, MSI, and several other formats... Support for more archive formats by introducing the integrated archiver DLL. Self-extracting archive creation function that can create high-performance automatic installers. Digital signature addition function to created self-extracting archive. Office 2007 or later document compression / image optimization re-archiving function. Supports compression and decompression of Unicode file names. Supports compression and expansion exceeding 4GB. AES encryption function. You can create a robust secure ZIP encryption archive. Thumbnail function of image file. In-library file search function. . Equipped with archive file conversion function. File split function. The split file has a self-consolidation function, and can concatenate files larger than 4GB. (No need for batch file or connection software) UU (XX) Encode, Base64 decode function. FTP upload function Supports Windows 11 shell integration extended context menu. Explzh 9.77 changelog: Added a "Reset" button to the [Special Color Settings] in [Options]-[Screen Color]-[Special Colors]. *After resetting, the colors will be set to the ones that AI judges to be most optimal for the current screen mode. Updated to Visual Studio 2022 v.17.14.4. Download: Explzh 64-bit | Explzh 32-bit | ~6.0 MB (Freeware) Download: Explzh ARM64 | 5.9 MB View: Explzh Home Page | Screenshot | Themes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      Al_ earned a badge
      Week One Done
    • Week One Done
      MadMung0 earned a badge
      Week One Done
    • Reacting Well
      BlakeBringer earned a badge
      Reacting Well
    • Reacting Well
      Lazy_Placeholder earned a badge
      Reacting Well
    • Dedicated
      Epaminombas earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      477
    2. 2
      +FloatingFatMan
      273
    3. 3
      ATLien_0
      243
    4. 4
      snowy owl
      211
    5. 5
      Edouard
      182
  • Tell a friend

    Love Neowin? Tell a friend!