Question:
What is the difference between .sys and .dll in terms of functionality.?
Alok Chauhan
2008-04-23 00:03:39 UTC
What is the difference between .sys and .dll in terms of functionality.?
Five answers:
sajan achuthan pillai
2008-04-23 02:29:33 UTC
.sys



.sys is a filename extension in Microsoft Windows and MS-DOS operating system.



Uses for .sys Files



In MS-DOS and DOS-based operating systems such as Windows 98, these files can be used as configuration files for the operating system. The MSDOS.SYS and CONFIG.SYS files contain various configuration options.



.sys files are used as device drivers



.dll files



Dynamic-link library (also written without the hyphen), or DLL, is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems. These libraries usually have the file extension DLL, OCX (for libraries containing ActiveX controls), or DRV (for legacy system drivers). The file formats for DLLs are the same as for Windows EXE files — that is, Portable Executable (PE) for 32-bit Windows, and New Executable (NE) for 16-bit Windows. As with EXEs, DLLs can contain code, data, and resources, in any combination.



Features of DLL



Memory management



In Win32, the DLL files are organized into sections. Each section has its own set of attributes, such as being writable or read-only, executable (for code) or non-executable (for data), and so on.



The code in a DLL is usually shared among all the processes that use the DLL; that is, they occupy a single place in physical memory, and do not take up space in the page file. If the physical memory occupied by a code section is to be reclaimed, its contents are discarded, and later reloaded directly from the DLL file as necessary.



If a DLL is compressed by certain executable packers (e.g. UPX), all of its code sections are marked as read-and-write, and will be unshared. Read-and-write code sections, much like private data sections, are private to each process. Thus DLLs with shared data sections should not be compressed if they are intended to be used simultaneously by multiple programs, since each program instance would have to carry its own copy of the DLL, resulting in increased memory consumption.



Import libraries



Linking to dynamic libraries is usually handled by linking to an import library when building or linking to create an executable file. The created executable then contains an import address table (IAT) by which all dll function calls are referenced (each referenced dll function contains its own entry in the IAT).



Symbol resolution and binding



Each function exported by a DLL is identified by a numeric ordinal and optionally a name. Likewise, functions can be imported from a DLL either by ordinal or by name. The ordinal represents the position of the functions address pointer in the DLL Export Address table.



It is also possible to bind an executable to a specific version of a DLL, that is, to resolve the addresses of imported functions at compile-time.



Explicit run-time linking



DLL files may be explicitly loaded at run-time, a process referred to simply as run-time dynamic linking by Microsoft, by using the LoadLibrary (or LoadLibraryEx) API function.



The procedure for explicit run-time linking is the same in any language, since it depends on the Windows API rather than language constructs.
voria
2008-04-23 05:54:35 UTC
The difference between .sys and .dll is that .sys is used for system files like booting purpose and .dll(dynamic link library) is used for dividing code so whenever we want to use that code of component then it can be easily used and help to rewrite again and avoid duplication and make program more faster to process.
Venkatesh V S
2008-04-23 00:15:50 UTC
sys is the system requirement file

dll is dynamic link library.



generally dll is used for VB program, or by Windows for doing various work and they are in the compiled verson or binary.



sys is generally in used by the system like windows / dos etc.

during the start up.



e.g country.sys is used to determine the country code that are being used.

Ansi.sys for colouring or giving effect to prompts in DOS
Pankaj
2008-04-23 00:22:43 UTC
http://docs.python.org/lib/module-sys.html







DLL:-



Application developers of all stripes are getting in on Software as a Service. What are the implications of moving your apps to an on-demand model? Find out in this DevX Special Report. Sponsored by Salesforce.

Learn how Salesforce can help developers create and run their own SaaS applications. Explore these featured resources.

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

Force.com: Create and Run Any Application On Demand

Why start from scratch building a business application when a proven on-demand framework already exists? Free white paper on salesforce.com's Force.com platform, the world's first platform as a service. Click Here



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

Translate Ideas into Apps Faster with Platform as a Service

See how to build enterprise-wide applications in record time by leveraging the built-in security model, reporting functionality, integration capabilities of salesforce.com's Force.com platform. Free webinar. Click Here

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

Introducing Visualforce: User Interface as a Service

Learn about Visualforce-a key component of Force.com, salesforce.com's platform as a service-which uses standard Web development technologies to create application user interfaces for any screen or device. Click Here

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

Get Free On-Demand Development Tools

Visit developer.force.com to get everything you need-tools, documentation, sample code, online demos, and more-to explore Force.com, the new, breakthrough platform-as-a-service technology from salesforce.com. Click Here







1) Short for Dynamic Link Library, a library of executable functions or data that can be used by a Windows application. Typically, a DLL provides one or more particular functions and a program accesses the functions by creating either a static or dynamic link to the DLL. A static link remains constant during program execution while a dynamic link is created by the program as needed. DLLs can also contain just data. DLL files usually end with the extension .dll,.exe., drv, or .fon.



A DLL can be used by several applications at the same time. Some DLLs are provided with the Windows operating system and available for any Windows application. Other DLLs are written for a particular application and are loaded with the application.





2) Short for Delay Locked Loop, Delay-Locked Loop (DLL) supports high-bandwidth data rates between devices. These DLLs are circuits that provide zero propagation delay, low-clock skew between output clock signals throughout a device, and advanced clock domain control. These dedicated DLLs can be used to implement several circuits that improve and simplify system level design.
sundell
2016-12-24 23:16:36 UTC
Sys.dll


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...