Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8286801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:52:31+00:00 2026-06-08T11:52:31+00:00

Prologue I am trying to learn about DalvikVM instructions using the Smali/Baksmali assembler/disassembler for

  • 0

Prologue

I am trying to learn about DalvikVM instructions using the Smali/Baksmali assembler/disassembler for dex files.

Problem

From this java file

package gd;

class Hello {
    public static void main(String[] args)
    {
      System.out.println("Hello!");
    }
}

I have generated the following smali assembly file:

.class Lgd/Hello;
.super Ljava/lang/Object;
.source "Hello.java"


# direct methods
.method constructor <init>()V
    .registers 1

    .prologue
    .line 3
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static main([Ljava/lang/String;)V
    .registers 3
    .parameter

    .prologue
    .line 6
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "Hello!"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 7
    return-void
.end method

My question is about the following line.

sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

As I understand this loads the static object PrintStream of the java.lang.System class into the v0 register. Now, what does this out: mean?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:52:33+00:00Added an answer on June 8, 2026 at 11:52 am

    PrintStream is actually the type of the thing being loaded. The object you’re loading might be referred to as java.lang.System.out, where java.lang is the package, System is the class, and out is the member (a static field) to be loaded.

    You can see the same pattern in the invoke-virtual: java.io is the package, PrintStream is the class and println is the member (in this case, an instance method). In both cases, the member is preceded with a ->. I don’t know if this pattern is consistent throughout Smali.

    I found http://source.android.com/tech/dalvik/dalvik-bytecode.html invaluable when I was playing with dalvik stuff, although in this case its contribution was just identifying that sget-object only took two arguments. That told me the ->out: business had to be part of the static field reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Prologue: I know about gems. I use Drupal at work. In case you don't
I'm currently doing some research on smali/code obfuscator and I'm trying to get familar
I am playing around with smali and baksmali on a small Hello World Android
Is there a solution to the problem illustrated in the code below? Start by
prologue However one important discovery i make during testing the md5, adler32 and crc32
I'm subclassing FileHandler to write a handler that produces correct xml files (meaning, not
I'm struggling converting a Response from http-conduit to an XML document via xml-conduit. The
At some places, I have read that stacks grow from a higher address to
I'm trying to build a personal Website via hunchentoot and cl-who, but I'm occurring
Prologue I am studying Flash and want to make a video player with where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.