Thursday, August 15, 2013

Execution address built-in functions for use in scatter files

Source: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0493c/CHDJDHFI.html

Execution address built-in functions for use in scatter files

The execution address related functions can only be used when specifying a base_address+offsetvalue, or max_size. They map to combinations of the linker defined symbols shown in Table 4.
Table 4. Execution address related functions 
FunctionLinker defined symbol value
ImageBase(region_name)
Image$$region_name$$Base
ImageLength(region_name)
Image$$region_name$$Length + Image$$region_name$$ZI$$Length
ImageLimit(region_name)
Image$$region_name$$Base + Image$$region_name$$Length + Image$$region_name$$ZI$$Length

The parameter region_name  can be either a load or an execution region name. Forward references are not permitted. The region_name can only refer to load or execution regions that have already been defined.

Note

You cannot use these functions when using the .ANY selector pattern. This is because a .ANYregion uses the maximum size when assigning sections. The maximum size might not be available at that point, because the size of all regions is not known until after the .ANY assignment.
The following example shows how to use ImageLimit(region_name) to place one execution region immediately after another:
Example 10. Placing an execution region after another
LR1 0x8000
{
    ER1 0x100000
    {
        *(+RO)
    }
}
LR2 0x100000
{
    ER2 (ImageLimit(ER1))               ; Place ER2 after ER1 has finished
    {
        *(+RW +ZI)
    }
}

Show/hideUsing +offset with expressions

+offset value for an execution region is defined in terms of the previous region. You can use this as an input to other expressions such as AlignExpr. For example:
LR1 0x4000
{
    ER1 AlignExpr(+0, 0x8000)
    {
        ...
    }
}
By using AlignExpr, the result of +0 is aligned to a 0x8000 boundary. This creates an execution region with a load address of 0x4000 but an execution address of 0x8000.

Thursday, June 6, 2013

Intel working on low-power Thunderbolt for tablets, smartphones


Intel working on low-power Thunderbolt for tablets, smartphones

Intel working on low-power Thunderbolt for tablets, smartphones

Intel says Thunderbolt on mobile devices depends on the future of WiGig, a wireless data transfer specification

By , IDG News Service
June 04, 2013 10:34 AM ET
IDG News Service - A low-power Thunderbolt interconnect for smartphones and tablets is in the works, but the wired technology may not thrive if consumers prefer products using the wireless WiGig specification for data transfers.
There is a need for faster throughput so smartphones and tablets can connect to high-definition TVs and storage peripherals, said Dadi Perlmutter, executive vice president and general manager of the Intel Architecture Group, in an interview on the sidelines of the Computex trade show in Taipei.
The Thunderbolt data transfer technology shuttles data at high speeds between host computers and peripherals. Intel's mobile Thunderbolt interconnect will be a low-power version of its more power-hungry relative used in Macs and PCs, Perlmutter said. He did not provide a time frame on when the technology would be ready.
Apple was an early adopter of Thunderbolt, and if introduced, low-power Thunderbolt could be a candidate for use in iPhones and iPads. The mobile devices currently use the proprietary Lightning interconnect for charging and connecting to peripherals.
But in the end, adoption of Thunderbolt in smartphones and tablets depends on users, who may prefer wireless data transmission on mobile devices, Perlmutter said.
Intel is backing the WiGig specification, which can transfer data wirelessly at a rate of up to 7Gbps (bits per second), which is faster than standard Wi-Fi. WiGig operates over the 60GHz spectrum, and is intended for use over short distances or within a room. The Wireless Gigabit Alliance leads the development of the WiGig specification, and devices supporting the standard could go on sale next year. The Wi-Fi Alliance is eventually expected to take over WiGig development.
"Do users want Thunderbolt or do they want WiGig? They might want both. We are working on both," Perlmutter said.
"We'll see what's winning," Perlmutter said.
Most non-Apple smartphones and tablets today use the micro-USB ports to connect to peripherals, with USB 3.0 just reaching devices. Asustek introduced the Transformer Pad Infinity with a USB 3.0 port at Computex.
Also, adoption of Thunderbolt on desktops and laptops has been poor due to the dominance of USB 3.0, which is slower but ubiquitous. Thunderbolt peripherals and cables are also expensive relative to USB 3.0.
Intel in April doubled the speed of the Thunderbolt interconnect -- which supports the PCI-Express and DisplayPort protocols -- to 20Gbps. Standards-setting organizations PCI-Special Interest Group (PCI-SIG) and MIPI Alliance in February started work on a new M-PCIe (mobile PCI-Express) specification, which is due to be finalized this quarter.


Saturday, April 27, 2013

[Linux] Redirecting output with sudo

ref: http://notfaq.wordpress.com/2007/09/26/unixlinux-redirect-output-as-sudo


Unix/Linux — Redirect output with sudo

By 
Sometimes you might need to redirect the output with sudo privileges. For example:
echo myhost.com > /etc/hostname
will give you the following error:
-bash: /etc/hostname: Permission denied
Unfortunately, using:
sudo echo myhost.com > /etc/hostname
will give the same error.
The solution is to start bash as sudo and then give the entire command tobash as input:
sudo bash -c “echo myhost.com > /etc/hostname”
Or as one reader suggested:
echo myhost.com | sudo tee /etc/hostname

Saturday, January 5, 2013

Sunday, November 11, 2012

What is a .NSF file seen in some web client?

Source: http://www.sitepoint.com/forums/showthread.php?64318-What-is-NSF-files


NSF/Notes/Domino is not a scripting language and is not similar to ASP/PHP. NSF stands for "Notes Storage Facility". The system architecture is roughly as follows:

Code:
+----------------+
| Notes (client) |
+----------------+
         |
+----------------+
| Domino (server)|
+----------------+
         |
+----------------+
|   .NSF file    |
|(Notes database)|
+----------------+
So an NSF file is just the database that Domino uses. Even the term "database" is a misnomer. The NSF contains security rules, application code and data all in one file, and can also normally be accessed directly from the client without using a Domino server. Each Domino application/website/whatever can be one or more databases.

The Notes/Domino system is fairly unique. It's an entire infrastructure that handles security, storage, scripting etc. The closest alternative I can think of is Zope, but even that doesn't do everything Notes/Domino can do.

In terms of development languages, you can use C, Java, LotusScript (kind of like VBScript), Formula Language (a proprietary very high level language) and probably one or two others.

In terms of "is it any good", that depends on what you need to do, and how you need to do it. For some things, it can't be beaten.

In terms of where can you get a copy - it costs $$$  However if you want to try developing in a superficially similar environment (as far as web apps are concerned anyway) give Zope a go.

Thursday, May 24, 2012

FTP : mput with no confirmation

Reference: http://cisconet.com/tcpip/tcpip-general/103-ftp-mput-with-no-confirmation.html



When you are transferring multiple files to your destination, 'mput' or 'mget' will be the one command used. Well, if we don't have ftp application at that time. Especially, more than 50 files need to be transferred ? confirmation would be hassle.


The prompt feature of the mput command can be disabled by invoking ftp with the -i option. In this instance, all file names that match the pattern in your mput command will be transferred
without confirmation.


Here is the way to avoid the hassle.


when you login, use '-i' option




ex) ftp -i ftp.test.com
ftp>cd [taget directory]
ftp>mput *




and try 'mput' or 'mget'


Now, ftpd won't ask a confirmation.
This tips make my life easier.