Compiling Programs to a Server

If you are using AcuConnect or AcuServer, you can have AcuBench copy an object file to the server after compiling. There are two ways to do this:

Just as there are two methods for placing the object file on the server, there are two ways to specify a remote destination for a compiled object: the Project Properties interface and the Project Settings interface. Settings that you specify in the Project Properties interface are automatically picked up by the Project Settings interface, but the reverse is not true. This means that if you use certain remote settings for testing and a different set of remote settings for production, you can specify the most commonly used set of options in the Project Properties interface, then create a special mode in the Project Settings interface for the less frequently used case.

To use the Project Properties interface to specify remote compiler settings:

  1. Right-click the project node in any Workspace window view and select Properties.
  2. Provide the server name and port on which your AcuConnect or AcuServer listener resides.
  3. Specify the directory in which the compiled object(s) should be placed.
  4. Mark the appropriate check box next to Apply to to indicate whether the settings you have provided should be used at compile time, execution time, or both. Note that execution options only apply if you are using the AcuConnect Thin Client.
  5. Click Test to verify the connection, then click OK to save your changes. The next time you compile a program in the project for which you have specified remote compiler settings, the object will be placed on the remote server.

To use the Project Settings interface to specify compiler settings for a specific project mode (or for an individual source file):

  1. Expand the Build menu and mark either the Use Thin Client or the Use Remote Compile toggle button.
  2. Right-click the project node in any Workspace window view and select Settings.
  3. Select the project mode that you want to modify, then select the project or program to which you want to apply the remote settings.
  4. In the Standard Options catalog of the Compiler tab in the Project Settings window, enter server, port, and remote directory information.
  5. When you are finished, click OK to save your settings.

    The next time you compile a program using this mode, the compiled object is placed in the specified server location.

When you use any remote compile option, the object file is listed in the Remote Object folder in the File view. Just as with local object files, you can right-click the object file icon in the File view and click Properties to retrieve information about the compiled object.